diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-08-31 14:50:59 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-09-01 10:44:56 -0400 |
commit | d81f258db284ba19a47fa873f1b4137ebd5f36f3 (patch) | |
tree | 15fc97547a9003b12cef6064a586fdf8ce2aadba /spec/features | |
parent | b1f581c3c291eaa3c07907c8cc3147f6bd4c759a (diff) | |
download | gitlab-ce-d81f258db284ba19a47fa873f1b4137ebd5f36f3.tar.gz |
Remove unnecessary attributes from factories
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/issues/filtered_search/filter_issues_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/issues/filtered_search/filter_issues_spec.rb b/spec/features/issues/filtered_search/filter_issues_spec.rb index 8ef4d88b892..5673fb7af6f 100644 --- a/spec/features/issues/filtered_search/filter_issues_spec.rb +++ b/spec/features/issues/filtered_search/filter_issues_spec.rb @@ -4,8 +4,9 @@ describe 'Filter issues', js: true do include FilteredSearchHelpers let!(:project) { create(:project) } - let!(:user) { create(:user, username: 'joe', name: 'Joe') } - let!(:user2) { create(:user, username: 'jane') } + let!(:user) { create(:user) } + let!(:user2) { create(:user) } + let!(:label) { create(:label, project: project) } let!(:wontfix) { create(:label, project: project, title: "Won't fix") } @@ -78,7 +79,7 @@ describe 'Filter issues', js: true do multiple_words_label_issue = create(:issue, title: "Issue with multiple words label", project: project) multiple_words_label_issue.labels << multiple_words_label - future_milestone = create(:milestone, title: "future", project: project, due_date: Time.now + 1.month) + future_milestone = create(:milestone, project: project, due_date: 1.month.from_now) create(:issue, title: "Issue with future milestone", |