refactor feature steps
This commit is contained in:
parent
ef4e9c24d3
commit
79eb5ab396
34 changed files with 270 additions and 376 deletions
18
features/steps/dashboard/dashboard_search.rb
Normal file
18
features/steps/dashboard/dashboard_search.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
class DashboardSearch < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedPaths
|
||||
|
||||
Given 'I search for "Sho"' do
|
||||
fill_in "dashboard_search", :with => "Sho"
|
||||
click_button "Search"
|
||||
end
|
||||
|
||||
Then 'I should see "Shop" project link' do
|
||||
page.should have_link "Shop"
|
||||
end
|
||||
|
||||
And 'I own project "Shop"' do
|
||||
@project = Factory :project, :name => "Shop"
|
||||
@project.add_access(@user, :admin)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue