refactor feature steps
This commit is contained in:
parent
ef4e9c24d3
commit
79eb5ab396
34 changed files with 270 additions and 376 deletions
34
features/steps/project/project_browse_files.rb
Normal file
34
features/steps/project/project_browse_files.rb
Normal file
|
@ -0,0 +1,34 @@
|
|||
class ProjectBrowseFiles < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedProject
|
||||
include SharedPaths
|
||||
|
||||
Then 'I should see files from repository' do
|
||||
page.should have_content "app"
|
||||
page.should have_content "History"
|
||||
page.should have_content "Gemfile"
|
||||
end
|
||||
|
||||
Then 'I should see files from repository for "8470d70"' do
|
||||
current_path.should == tree_project_ref_path(@project, "8470d70")
|
||||
page.should have_content "app"
|
||||
page.should have_content "History"
|
||||
page.should have_content "Gemfile"
|
||||
end
|
||||
|
||||
Given 'I click on "Gemfile" file in repo' do
|
||||
click_link "Gemfile"
|
||||
end
|
||||
|
||||
Then 'I should see it content' do
|
||||
page.should have_content "rubygems.org"
|
||||
end
|
||||
|
||||
And 'I click link "raw"' do
|
||||
click_link "raw"
|
||||
end
|
||||
|
||||
Then 'I should see raw file content' do
|
||||
page.source.should == ValidCommit::BLOB_FILE
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue