From fa34901237cc244fe8b828d079af891e63de1c8f Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 2 Oct 2014 18:42:54 +0200 Subject: Make Spinach test names consistent - do not add Feature to feature titles - titleize feature titles - put steps on the same path as .feature files - make feature titles match their path --- features/steps/snippets/discover.rb | 2 +- features/steps/snippets/snippets.rb | 2 +- features/steps/snippets/user.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'features/steps/snippets') diff --git a/features/steps/snippets/discover.rb b/features/steps/snippets/discover.rb index da73dfc68be..42bccafcc84 100644 --- a/features/steps/snippets/discover.rb +++ b/features/steps/snippets/discover.rb @@ -1,4 +1,4 @@ -class Spinach::Features::DiscoverSnippets < Spinach::FeatureSteps +class Spinach::Features::SnippetsDiscover < Spinach::FeatureSteps include SharedAuthentication include SharedPaths include SharedSnippet diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb index e8154c8ce57..dedbdd2c4f0 100644 --- a/features/steps/snippets/snippets.rb +++ b/features/steps/snippets/snippets.rb @@ -1,4 +1,4 @@ -class Spinach::Features::SnippetsFeature < Spinach::FeatureSteps +class Spinach::Features::Snippets < Spinach::FeatureSteps include SharedAuthentication include SharedPaths include SharedProject diff --git a/features/steps/snippets/user.rb b/features/steps/snippets/user.rb index 71a1952926f..ca9aa64bee6 100644 --- a/features/steps/snippets/user.rb +++ b/features/steps/snippets/user.rb @@ -1,4 +1,4 @@ -class Spinach::Features::UserSnippets < Spinach::FeatureSteps +class Spinach::Features::SnippetsUser < Spinach::FeatureSteps include SharedAuthentication include SharedPaths include SharedSnippet -- cgit v1.2.1 From fd8d1d9b62066766c96610b7d42b20fa0e84b0ac Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 7 Oct 2014 11:54:00 +0300 Subject: Snippets: rename public to internal --- features/steps/snippets/snippets.rb | 2 +- features/steps/snippets/user.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'features/steps/snippets') diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb index dedbdd2c4f0..de936db85ee 100644 --- a/features/steps/snippets/snippets.rb +++ b/features/steps/snippets/snippets.rb @@ -46,7 +46,7 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps end step 'I uncheck "Private" checkbox' do - choose "Public" + choose "Internal" click_button "Save" end diff --git a/features/steps/snippets/user.rb b/features/steps/snippets/user.rb index ca9aa64bee6..c41bc436142 100644 --- a/features/steps/snippets/user.rb +++ b/features/steps/snippets/user.rb @@ -23,9 +23,9 @@ class Spinach::Features::SnippetsUser < Spinach::FeatureSteps page.should_not have_content "Personal snippet private" end - step 'I click "Public" filter' do + step 'I click "Internal" filter' do within('.nav-stacked') do - click_link "Public" + click_link "Internal" end end -- cgit v1.2.1