BigW Consortium Gitlab

discover.rb 636 Bytes
Newer Older
1
class Spinach::Features::SnippetsDiscover < Spinach::FeatureSteps
2 3
  include SharedAuthentication
  include SharedPaths
Andrew8xx8 committed
4
  include SharedSnippet
5

6
  step 'I should see "Personal snippet one" in snippets' do
7
    expect(page).to have_content "Personal snippet one"
8 9
  end

10
  step 'I should see "Personal snippet internal" in snippets' do
11
    expect(page).to have_content "Personal snippet internal"
12 13
  end

14
  step 'I should not see "Personal snippet private" in snippets' do
15
    expect(page).not_to have_content "Personal snippet private"
16 17 18
  end

  def snippet
skv committed
19
    @snippet ||= PersonalSnippet.find_by!(title: "Personal snippet one")
20 21
  end
end