summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 13:14:12 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 13:18:44 +0400
commit033037a059c9229df310e3508f9c50beb676bf00 (patch)
tree5872380998a386087ebcc81a2c07b51e1d197939 /features
parentd4543eb5a71bd3aa5bfc24f9fadf07e4fe3d461d (diff)
downloadgitlab-ce-033037a059c9229df310e3508f9c50beb676bf00.tar.gz
Typo in class name fixed
Diffstat (limited to 'features')
-rw-r--r--features/steps/shared/snippet.rb4
-rw-r--r--features/steps/snippets/discover_snippets.rb2
-rw-r--r--features/steps/snippets/snippets.rb1
-rw-r--r--features/steps/snippets/user_snippets.rb2
4 files changed, 6 insertions, 3 deletions
diff --git a/features/steps/shared/snippet.rb b/features/steps/shared/snippet.rb
index 32cc68c2852..543e43196a5 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 ff2e4952c36..3afe019adf6 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 f20832cb1f1..0ab636543a9 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 0920b56e38d..15d6da6db3d 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)