Skip to content
Snippets Groups Projects
Commit 611ac727 authored by Andrew8xx8's avatar Andrew8xx8
Browse files

Tests for private snippet fixed

parent ed4dcf74
Branches
Tags
Loading
Loading
@@ -2,7 +2,7 @@
Loading
@@ -2,7 +2,7 @@
- if @snippet.private? - if @snippet.private?
%i.icon-lock %i.icon-lock
- else - else
%i.icon-globe.public-snippet %i.icon-globe
   
= @snippet.title = @snippet.title
%small= @snippet.file_name %small= @snippet.file_name
Loading
Loading
Loading
@@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps
Loading
@@ -51,7 +51,7 @@ class Snippets < Spinach::FeatureSteps
end end
   
Then 'I should see "Personal snippet one" public' do 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 end
   
And 'I visit snippet page "Personal snippet one"' do And 'I visit snippet page "Personal snippet one"' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment