From 033037a059c9229df310e3508f9c50beb676bf00 Mon Sep 17 00:00:00 2001 From: Andrew8xx8 Date: Mon, 25 Mar 2013 13:14:12 +0400 Subject: [PATCH] Typo in class name fixed --- features/steps/shared/snippet.rb | 4 +++- features/steps/snippets/discover_snippets.rb | 2 +- features/steps/snippets/snippets.rb | 1 + features/steps/snippets/user_snippets.rb | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) 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