Commit 318b50a0b3df4842cc33a15ff2019c948af15359

Authored by Dmitriy Zaporozhets
1 parent 6642709f

Add profile notification spinach

features/profile/notifications.feature 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +Feature: Profile Notifications
  2 + Background:
  3 + Given I sign in as a user
  4 + And I own project "Shop"
  5 +
  6 + Scenario: I visit notifications tab
  7 + When I visit profile notifications page
  8 + Then I should see global notifications settings
... ...
features/steps/profile/profile_notifications.rb 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +class ProfileNotifications < Spinach::FeatureSteps
  2 + include SharedAuthentication
  3 + include SharedProject
  4 +
  5 + step 'I visit profile notifications page' do
  6 + visit profile_notifications_path
  7 + end
  8 +
  9 + step 'I should see global notifications settings' do
  10 + page.should have_content "Setup your notification level"
  11 + page.should have_content "Global setting"
  12 + end
  13 +end
... ...