2012-09-10 10:51:02 +02:00
|
|
|
class DashboardSearch < Spinach::FeatureSteps
|
2012-09-10 17:35:03 +02:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedPaths
|
|
|
|
|
2012-09-10 10:51:02 +02:00
|
|
|
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
|