Rspec fixes
This commit is contained in:
parent
dccd8b6eaa
commit
afbdbb0c95
22 changed files with 149 additions and 199 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue