Tests improved

This commit is contained in:
Andrew8xx8 2013-03-12 13:40:54 +04:00
parent 23f8f13ea4
commit 804ae05c58
2 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,20 @@
class Dashboard < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject
Then 'I should see projects list' do
@user.authorized_projects.all.each do |project|
page.should have_link project.name_with_namespace
end
end
Given 'I search for "Sho"' do
fill_in "dashboard_projects_search", with: "Sho"
click_button "Search"
end
Then 'I should see "Shop" project link' do
page.should have_link "Shop"
end
end