gitlab-org--gitlab-foss/features/steps/snippets/discover_snippets.rb
2013-03-25 13:18:44 +04:00

17 lines
474 B
Ruby

class DiscoverSnippets < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedSnippet
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
@snippet ||= PersonalSnippet.find_by_title!("Personal snippet one")
end
end