debian-mirror-gitlab/features/steps/snippets/discover.rb

22 lines
636 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class Spinach::Features::SnippetsDiscover < Spinach::FeatureSteps
2014-09-02 18:07:02 +05:30
include SharedAuthentication
include SharedPaths
include SharedSnippet
2015-04-26 12:48:37 +05:30
step 'I should see "Personal snippet one" in snippets' do
2015-09-11 14:41:01 +05:30
expect(page).to have_content "Personal snippet one"
2014-09-02 18:07:02 +05:30
end
2015-04-26 12:48:37 +05:30
step 'I should see "Personal snippet internal" in snippets' do
2015-09-11 14:41:01 +05:30
expect(page).to have_content "Personal snippet internal"
2015-04-26 12:48:37 +05:30
end
step 'I should not see "Personal snippet private" in snippets' do
2015-09-11 14:41:01 +05:30
expect(page).not_to have_content "Personal snippet private"
2014-09-02 18:07:02 +05:30
end
def snippet
@snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
end
end