summaryrefslogtreecommitdiff
path: root/features/steps/dashboard/search.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/dashboard/search.rb')
-rw-r--r--features/steps/dashboard/search.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/features/steps/dashboard/search.rb b/features/steps/dashboard/search.rb
new file mode 100644
index 00000000000..32966a8617a
--- /dev/null
+++ b/features/steps/dashboard/search.rb
@@ -0,0 +1,19 @@
+class DashboardSearch < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedPaths
+ include SharedProject
+
+ 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
+
+ Given 'I search for "Contibuting"' do
+ fill_in "dashboard_search", with: "Contibuting"
+ click_button "Search"
+ end
+end