gitlab-org--gitlab-foss/spec/policies/concerns/policy_actor_spec.rb
Lin Jen-Shin b577faf785 Rename the module and add a simple test to check
if all methods are also presented in the user.
2018-07-27 17:52:45 +08:00

13 lines
355 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe PolicyActor do
it 'implements all the methods from user' do
methods = subject.instance_methods
# User.instance_methods do not return all methods until an instance is
# initialized. So here we just use an instance
expect(build(:user).methods).to include(*methods)
end
end