summaryrefslogtreecommitdiff
path: root/features/steps/project/labels.rb
blob: 73d00b0004e9d6bec235f0f6e590c05de0395095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class ProjectLabels < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedProject
  include SharedPaths

  Then 'I should see label "bug"' do
    within ".labels-table" do
      page.should have_content "bug"
    end
  end

  And 'I should see label "feature"' do
    within ".labels-table" do
      page.should have_content "feature"
    end
  end

  And 'project "Shop" have issues tags: "bug", "feature"' do
    project = Project.find_by(name: "Shop")
    label1 = create(:label, project: project, title: 'bug')
    label2 = create(:label, project: project, title: 'feature')
  end
end