diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-04 18:50:31 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-04 18:50:31 +0200 |
commit | afbdbb0c959affbdb8725eafb8169025a8aede1e (patch) | |
tree | 87fec66647ef63d1abc5cae17192f1f10c1559bb /features | |
parent | dccd8b6eaa8b2e98b0245262a8e39df8fb8ae634 (diff) | |
download | gitlab-ce-afbdbb0c959affbdb8725eafb8169025a8aede1e.tar.gz |
Rspec fixes
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/project_browse_commits.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/project/project_browse_commits.rb b/features/steps/project/project_browse_commits.rb index 2c03ce14fc1..aef1d048349 100644 --- a/features/steps/project/project_browse_commits.rb +++ b/features/steps/project/project_browse_commits.rb @@ -4,7 +4,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps include SharedPaths Then 'I see project commits' do - commit = @project.commit + commit = @project.repository.commit page.should have_content(@project.name) page.should have_content(commit.message) page.should have_content(commit.id.to_s[0..5]) @@ -15,7 +15,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps end Then 'I see commits atom feed' do - commit = CommitDecorator.decorate(@project.commit) + commit = CommitDecorator.decorate(@project.repository.commit) page.response_headers['Content-Type'].should have_content("application/atom+xml") page.body.should have_selector("title", :text => "Recent commits to #{@project.name}") page.body.should have_selector("author email", :text => commit.author_email) |