diff options
author | Ryan Scott <ryan@ryan-scott.me> | 2017-04-05 11:31:48 +0900 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-07-20 15:33:24 +0100 |
commit | 7e3d34595c3e090fe505b4fbd49cde2a303b1b6f (patch) | |
tree | 17a81203a5e9b224c4974a991c5fce81b44953b4 /spec/features/issues | |
parent | 01c9488f4a559063eba77074ba2d369de87b8018 (diff) | |
download | gitlab-ce-7e3d34595c3e090fe505b4fbd49cde2a303b1b6f.tar.gz |
Changes based on MR feedback.
Marking an issue as a duplicate will now also add an upvote on behalf of the author on the original issue.
Diffstat (limited to 'spec/features/issues')
-rw-r--r-- | spec/features/issues/user_uses_slash_commands_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/features/issues/user_uses_slash_commands_spec.rb b/spec/features/issues/user_uses_slash_commands_spec.rb index d5de060b033..28f27c76e35 100644 --- a/spec/features/issues/user_uses_slash_commands_spec.rb +++ b/spec/features/issues/user_uses_slash_commands_spec.rb @@ -147,9 +147,7 @@ feature 'Issues > User uses quick actions', feature: true, js: true do expect(page).to have_content 'Commands applied' expect(page).to have_content "marked this issue as a duplicate of #{original_issue.to_reference}" - issue.reload - - expect(issue.closed?).to be_truthy + expect(issue.reload).to be_closed end end @@ -169,9 +167,7 @@ feature 'Issues > User uses quick actions', feature: true, js: true do expect(page).not_to have_content 'Commands applied' expect(page).not_to have_content "marked this issue as a duplicate of #{original_issue.to_reference}" - issue.reload - - expect(issue.closed?).to be_falsey + expect(issue.reload).to be_open end end end |