diff options
Diffstat (limited to 'spec/features/builds_spec.rb')
-rw-r--r-- | spec/features/builds_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index 10cd6a1..2c59e14 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -4,7 +4,8 @@ describe "Builds" do before do login_as :user @project = FactoryGirl.create :project - @build = FactoryGirl.create :build, project: @project + @commit = FactoryGirl.create :commit, project: @project + @build = FactoryGirl.create :build, commit: @commit end describe "GET /:project/builds" do @@ -12,8 +13,8 @@ describe "Builds" do visit project_build_path(@project, @build) end - it { page.should have_content @build.sha[0..7] } - it { page.should have_content @build.git_commit_message } - it { page.should have_content @build.git_author_name } + it { page.should have_content @commit.sha[0..7] } + it { page.should have_content @commit.git_commit_message } + it { page.should have_content @commit.git_author_name } end end |