Commit 611ac727450b4fb9214e428cd91f7913d48ed7d8

Authored by Andrew8xx8
1 parent ed4dcf74

Tests for private snippet fixed

app/views/snippets/show.html.haml
... ... @@ -2,7 +2,7 @@
2 2 - if @snippet.private?
3 3 %i.icon-lock
4 4 - else
5   - %i.icon-globe.public-snippet
  5 + %i.icon-globe
6 6  
7 7 = @snippet.title
8 8 %small= @snippet.file_name
... ...
features/steps/snippets/snippets.rb
... ... @@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps
51 51 end
52 52  
53 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 55 end
56 56  
57 57 And 'I visit snippet page "Personal snippet one"' do
... ...