diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-26 20:54:51 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-26 20:54:51 +0300 |
commit | 318b50a0b3df4842cc33a15ff2019c948af15359 (patch) | |
tree | 3e5e0549b18ed937d95c5732e676f4f0e68b0a9a | |
parent | 6642709faa090107e13ab8ad5aa74f2949e73faf (diff) | |
download | gitlab-ce-318b50a0b3df4842cc33a15ff2019c948af15359.tar.gz |
Add profile notification spinach
-rw-r--r-- | features/profile/notifications.feature | 8 | ||||
-rw-r--r-- | features/steps/profile/profile_notifications.rb | 13 |
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 |