Add profile notification spinach

This commit is contained in:
Dmitriy Zaporozhets 2013-06-26 20:54:51 +03:00
parent 6642709faa
commit 318b50a0b3
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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