summaryrefslogtreecommitdiff
path: root/features/steps/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/snippets')
-rw-r--r--features/steps/snippets/public_snippets.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/features/steps/snippets/public_snippets.rb b/features/steps/snippets/public_snippets.rb
index 956aa4a3e7e..67669dc0a69 100644
--- a/features/steps/snippets/public_snippets.rb
+++ b/features/steps/snippets/public_snippets.rb
@@ -7,10 +7,18 @@ class Spinach::Features::PublicSnippets < Spinach::FeatureSteps
page.should have_no_xpath("//i[@class='public-snippet']")
end
+ step 'I should see raw snippet "Personal snippet one"' do
+ page.should have_text(snippet.content)
+ end
+
step 'I visit snippet page "Personal snippet one"' do
visit snippet_path(snippet)
end
+ step 'I visit snippet raw page "Personal snippet one"' do
+ visit raw_snippet_path(snippet)
+ end
+
def snippet
@snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
end