gitlab-org--gitlab-foss/features/steps/snippets/discover.rb
Dmitriy Zaporozhets c31c8c55a4
Merge branch 'spinach-step' of https://github.com/cirosantilli/gitlabhq into cirosantilli-spinach-step
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

Conflicts:
	features/steps/project/markdown_render.rb
2014-09-22 20:56:12 +03:00

17 lines
495 B
Ruby

class Spinach::Features::DiscoverSnippets < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedSnippet
step 'I should see "Personal snippet one" in snippets' do
page.should have_content "Personal snippet one"
end
step '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