summaryrefslogtreecommitdiff
path: root/spec/models/concerns/approvable_base_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/concerns/approvable_base_spec.rb')
-rw-r--r--spec/models/concerns/approvable_base_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/approvable_base_spec.rb b/spec/models/concerns/approvable_base_spec.rb
index e4aded1b8d0..8fda8bccf09 100644
--- a/spec/models/concerns/approvable_base_spec.rb
+++ b/spec/models/concerns/approvable_base_spec.rb
@@ -3,11 +3,11 @@
require 'spec_helper'
RSpec.describe ApprovableBase do
- describe '#has_approved?' do
+ describe '#approved_by?' do
let(:merge_request) { create(:merge_request) }
let(:user) { create(:user) }
- subject { merge_request.has_approved?(user) }
+ subject { merge_request.approved_by?(user) }
context 'when a user has not approved' do
it 'returns false' do