diff --git a/features/steps/shared/snippet.rb b/features/steps/shared/snippet.rb index 32cc68c..543e431 100644 --- a/features/steps/shared/snippet.rb +++ b/features/steps/shared/snippet.rb @@ -1,4 +1,6 @@ -module SharedProject +module SharedSnippet + include Spinach::DSL + And 'I have public "Personal snippet one" snippet' do create(:personal_snippet, title: "Personal snippet one", diff --git a/features/steps/snippets/discover_snippets.rb b/features/steps/snippets/discover_snippets.rb index ff2e495..3afe019 100644 --- a/features/steps/snippets/discover_snippets.rb +++ b/features/steps/snippets/discover_snippets.rb @@ -1,7 +1,7 @@ class DiscoverSnippets < Spinach::FeatureSteps include SharedAuthentication include SharedPaths - include SharedProject + include SharedSnippet Then 'I should see "Personal snippet one" in snippets' do page.should have_content "Personal snippet one" diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb index f20832c..0ab6365 100644 --- a/features/steps/snippets/snippets.rb +++ b/features/steps/snippets/snippets.rb @@ -2,6 +2,7 @@ class Snippets < Spinach::FeatureSteps include SharedAuthentication include SharedPaths include SharedProject + include SharedSnippet Given 'I click link "Personal snippet one"' do click_link "Personal snippet one" diff --git a/features/steps/snippets/user_snippets.rb b/features/steps/snippets/user_snippets.rb index 0920b56..15d6da6 100644 --- a/features/steps/snippets/user_snippets.rb +++ b/features/steps/snippets/user_snippets.rb @@ -1,7 +1,7 @@ class UserSnippets < Spinach::FeatureSteps include SharedAuthentication include SharedPaths - include SharedProject + include SharedSnippet Given 'I visit my snippets page' do visit user_snippets_path(current_user) -- libgit2 0.21.2