summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 02:46:56 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 02:46:56 +0400
commit611ac727450b4fb9214e428cd91f7913d48ed7d8 (patch)
tree736e0ca4bb626da9405e0f42805924f1e14a5eec
parented4dcf7484149c4432597c81b9ce1324010e036a (diff)
downloadgitlab-ce-611ac727450b4fb9214e428cd91f7913d48ed7d8.tar.gz
Tests for private snippet fixed
-rw-r--r--app/views/snippets/show.html.haml2
-rw-r--r--features/steps/snippets/snippets.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index 37a1181dea3..18348fb1067 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 87a499821dd..f20832cb1f1 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