Use project_with_code factory where necessary

This commit is contained in:
Dmitriy Zaporozhets 2013-04-01 18:16:08 +03:00
parent 9a26e9a0d6
commit f5dec306fd
8 changed files with 20 additions and 17 deletions

View file

@ -15,7 +15,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
end
Then 'I see commits atom feed' do
commit = CommitDecorator.decorate(@project.repository.commit)
commit = @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)