Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-26 21:54:51 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-26 21:54:51 +0400
commit318b50a0b3df4842cc33a15ff2019c948af15359 (patch)
tree3e5e0549b18ed937d95c5732e676f4f0e68b0a9a
parent6642709faa090107e13ab8ad5aa74f2949e73faf (diff)
Add profile notification spinach
-rw-r--r--features/profile/notifications.feature8
-rw-r--r--features/steps/profile/profile_notifications.rb13
2 files changed, 21 insertions, 0 deletions
diff --git a/features/profile/notifications.feature b/features/profile/notifications.feature
new file mode 100644
index 00000000000..e7937953c1b
--- /dev/null
+++ b/features/profile/notifications.feature
@@ -0,0 +1,8 @@
+Feature: Profile Notifications
+ Background:
+ Given I sign in as a user
+ And I own project "Shop"
+
+ Scenario: I visit notifications tab
+ When I visit profile notifications page
+ Then I should see global notifications settings
diff --git a/features/steps/profile/profile_notifications.rb b/features/steps/profile/profile_notifications.rb
new file mode 100644
index 00000000000..54b02605689
--- /dev/null
+++ b/features/steps/profile/profile_notifications.rb
@@ -0,0 +1,13 @@
+class ProfileNotifications < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedProject
+
+ step 'I visit profile notifications page' do
+ visit profile_notifications_path
+ end
+
+ step 'I should see global notifications settings' do
+ page.should have_content "Setup your notification level"
+ page.should have_content "Global setting"
+ end
+end