gitlab-org--gitlab-foss/features/steps/snippets/discover.rb

18 lines
475 B
Ruby
Raw Normal View History

2013-03-24 18:17:38 -04:00
class DiscoverSnippets < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
2013-03-25 05:14:12 -04:00
include SharedSnippet
2013-03-24 18:17:38 -04:00
Then 'I should see "Personal snippet one" in snippets' do
page.should have_content "Personal snippet one"
end
And 'I should not see "Personal snippet private" in snippets' do
page.should_not have_content "Personal snippet private"
end
def snippet
2014-01-19 13:55:59 -05:00
@snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
2013-03-24 18:17:38 -04:00
end
end