diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-23 09:49:13 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-24 08:42:52 +0100 |
commit | 5cca2d3bb171c260ad4b07f2a69962d3856c4d99 (patch) | |
tree | dbf18f711b91436e9569042ac9112c663ba4adf1 /spec | |
parent | fac08c3bcd7316794bcbcfb5cec32ac05cb104fe (diff) | |
download | gitlab-ce-5cca2d3bb171c260ad4b07f2a69962d3856c4d99.tar.gz |
Updated Ruby based on feedbackissue-filter-name-options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/filter_issues_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/issues/filter_issues_spec.rb b/spec/features/issues/filter_issues_spec.rb index c7ffee7d09c..bfbd06a29e2 100644 --- a/spec/features/issues/filter_issues_spec.rb +++ b/spec/features/issues/filter_issues_spec.rb @@ -159,7 +159,7 @@ describe 'Filter issues', feature: true do before do create(:issue, title: "Bug", project: project) - create(:label, project: project, title: 'bug') + bug_label = create(:label, project: project, title: 'bug') milestone = create(:milestone, title: "8", project: project) issue = create(:issue, @@ -168,7 +168,7 @@ describe 'Filter issues', feature: true do milestone: milestone, author: user, assignee: user) - issue.labels << project.labels.find_by(title: 'bug') + issue.labels << bug_label visit namespace_project_issues_path(project.namespace, project) end @@ -264,12 +264,12 @@ describe 'Filter issues', feature: true do describe 'filter issues and sort', js: true do before do - create(:label, project: project, title: 'bug') + bug_label = create(:label, project: project, title: 'bug') bug_one = create(:issue, title: "Frontend", project: project) bug_two = create(:issue, title: "Bug 2", project: project) - bug_one.labels << project.labels.find_by(title: 'bug') - bug_two.labels << project.labels.find_by(title: 'bug') + bug_one.labels << bug_label + bug_two.labels << bug_label visit namespace_project_issues_path(project.namespace, project) end |