From 318b50a0b3df4842cc33a15ff2019c948af15359 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 26 Jun 2013 20:54:51 +0300 Subject: Add profile notification spinach --- features/profile/notifications.feature | 8 ++++++++ features/steps/profile/profile_notifications.rb | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 features/profile/notifications.feature create mode 100644 features/steps/profile/profile_notifications.rb 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 -- cgit v1.2.3