Commit 611ac727450b4fb9214e428cd91f7913d48ed7d8
1 parent
ed4dcf74
Exists in
master
and in
4 other branches
Tests for private snippet fixed
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/snippets/show.html.haml
features/steps/snippets/snippets.rb
@@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps | @@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps | ||
51 | end | 51 | end |
52 | 52 | ||
53 | Then 'I should see "Personal snippet one" public' do | 53 | Then 'I should see "Personal snippet one" public' do |
54 | - page.should have_selector(:xpath, "//i[@class='public-snippet']") | 54 | + page.should have_no_xpath("//i[@class='public-snippet']") |
55 | end | 55 | end |
56 | 56 | ||
57 | And 'I visit snippet page "Personal snippet one"' do | 57 | And 'I visit snippet page "Personal snippet one"' do |