diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
commit | 48aff82709769b098321c738f3444b9bdaa694c6 (patch) | |
tree | e00c7c43e2d9b603a5a6af576b1685e400410dee /spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb | |
parent | 879f5329ee916a948223f8f43d77fba4da6cd028 (diff) |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb b/spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb index 50a8b81b518..3cdba315d1f 100644 --- a/spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb +++ b/spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb @@ -109,7 +109,7 @@ RSpec.shared_examples 'issuable quick actions' do QuickAction.new( action_text: "/unlock", before_action: -> { - issuable.update(discussion_locked: true) + issuable.update!(discussion_locked: true) }, expectation: ->(noteable, can_use_quick_action) { if can_use_quick_action @@ -128,7 +128,7 @@ RSpec.shared_examples 'issuable quick actions' do QuickAction.new( action_text: "/remove_milestone", before_action: -> { - issuable.update(milestone_id: milestone.id) + issuable.update!(milestone_id: milestone.id) }, expectation: ->(noteable, can_use_quick_action) { if can_use_quick_action @@ -171,7 +171,7 @@ RSpec.shared_examples 'issuable quick actions' do QuickAction.new( action_text: "/remove_estimate", before_action: -> { - issuable.update(time_estimate: 30000) + issuable.update!(time_estimate: 30000) }, expectation: ->(noteable, can_use_quick_action) { if can_use_quick_action @@ -228,7 +228,7 @@ RSpec.shared_examples 'issuable quick actions' do before do project.add_developer(old_assignee) - issuable.update(assignees: [old_assignee]) + issuable.update!(assignees: [old_assignee]) end context 'when user can update issuable' do |