diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index 37a1181dea378bc737a422cdb886ed1e0962797c..18348fb10679ecbe87ee24684c001ea68a9dc975 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -2,7 +2,7 @@ - if @snippet.private? %i.icon-lock - else - %i.icon-globe.public-snippet + %i.icon-globe = @snippet.title %small= @snippet.file_name diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb index 87a499821dd64d59cac420b7ddf456701a56ca2e..f20832cb1f116670a543d669b4d1dcc5a14d4e35 100644 --- a/features/steps/snippets/snippets.rb +++ b/features/steps/snippets/snippets.rb @@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps end Then 'I should see "Personal snippet one" public' do - page.should have_selector(:xpath, "//i[@class='public-snippet']") + page.should have_no_xpath("//i[@class='public-snippet']") end And 'I visit snippet page "Personal snippet one"' do