diff options
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/commits_spec.rb | 6 | ||||
-rw-r--r-- | spec/features/projects_spec.rb | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb index 2108d2c..deaf729 100644 --- a/spec/features/commits_spec.rb +++ b/spec/features/commits_spec.rb @@ -6,8 +6,7 @@ describe "Commits" do login_as :user @project = FactoryGirl.create :project @commit = FactoryGirl.create :commit, project: @project - @job = FactoryGirl.create :job, project: @project - @build = FactoryGirl.create :build, commit: @commit, job: @job + @build = FactoryGirl.create :build, commit: @commit end describe "GET /:project/commits/:sha" do @@ -25,8 +24,7 @@ describe "Commits" do before do @project = FactoryGirl.create :public_project @commit = FactoryGirl.create :commit, project: @project - @job = FactoryGirl.create :job, project: @project - @build = FactoryGirl.create :build, commit: @commit, job: @job + @build = FactoryGirl.create :build, commit: @commit end describe "GET /:project/commits/:sha" do diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index f01dc11..3f21af9 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -34,12 +34,12 @@ describe "Projects" do it { page.should have_content 'Build Schedule' } it "updates configuration" do - fill_in 'Skip refs', with: 'deploy' + fill_in 'Timeout', with: '70' click_button 'Save changes' page.should have_content 'was successfully updated' - find_field('Skip refs').value.should eq 'deploy' + find_field('Timeout').value.should eq '70' end end |