diff options
| author | dosire <sytses@gmail.com> | 2014-03-25 20:57:21 +0100 |
|---|---|---|
| committer | dosire <sytses@gmail.com> | 2014-03-25 20:57:21 +0100 |
| commit | b2e74741555f9cb9d58c3c44810803d0db39b9f3 (patch) | |
| tree | 413fa17b0afa673c08e88e96217fe459265e835a /features/steps/project/labels.rb | |
| parent | 775f686e0e6e126555910a32c5c400d24e90789e (diff) | |
| parent | 7f67e066dc9749d2532d220fafa3f397a5fe1f24 (diff) | |
| download | gitlab-ce-b2e74741555f9cb9d58c3c44810803d0db39b9f3.tar.gz | |
Merge branch 'master' into define-feature-request
Conflicts:
PROCESS.md
Diffstat (limited to 'features/steps/project/labels.rb')
| -rw-r--r-- | features/steps/project/labels.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/features/steps/project/labels.rb b/features/steps/project/labels.rb new file mode 100644 index 00000000000..0907cdb526f --- /dev/null +++ b/features/steps/project/labels.rb @@ -0,0 +1,24 @@ +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") + ['bug', 'feature'].each do |label| + create(:issue, project: project, label_list: label) + end + end +end |
