diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-21 23:40:22 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-22 10:01:50 +0200 |
commit | ef6e94e37e0fce23acf32992476aeb63405be0c1 (patch) | |
tree | 3cfce6b15bab68f2213850672872de2ce420bae3 /features/steps/snippets/user.rb | |
parent | fda61a047ffb9b04bc4dd38e897088fde17fb3c1 (diff) | |
download | gitlab-ce-ef6e94e37e0fce23acf32992476aeb63405be0c1.tar.gz |
Replace old spinach step definitions with step.
Diffstat (limited to 'features/steps/snippets/user.rb')
-rw-r--r-- | features/steps/snippets/user.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/features/steps/snippets/user.rb b/features/steps/snippets/user.rb index 2d7ffc866e7..9b702b8c844 100644 --- a/features/steps/snippets/user.rb +++ b/features/steps/snippets/user.rb @@ -3,33 +3,33 @@ class UserSnippets < Spinach::FeatureSteps include SharedPaths include SharedSnippet - Given 'I visit my snippets page' do + step 'I visit my snippets page' do visit user_snippets_path(current_user) end - Then 'I should see "Personal snippet one" in snippets' do + step 'I should see "Personal snippet one" in snippets' do page.should have_content "Personal snippet one" end - And 'I should see "Personal snippet private" in snippets' do + step 'I should see "Personal snippet private" in snippets' do page.should have_content "Personal snippet private" end - Then 'I should not see "Personal snippet one" in snippets' do + step 'I should not see "Personal snippet one" in snippets' do page.should_not have_content "Personal snippet one" end - And 'I should not see "Personal snippet private" in snippets' do + step 'I should not see "Personal snippet private" in snippets' do page.should_not have_content "Personal snippet private" end - Given 'I click "Public" filter' do + step 'I click "Public" filter' do within('.nav-stacked') do click_link "Public" end end - Given 'I click "Private" filter' do + step 'I click "Private" filter' do within('.nav-stacked') do click_link "Private" end |