gitlab-org--gitlab-foss/spec/policies/concerns/policy_actor_spec.rb

14 lines
355 B
Ruby
Raw Normal View History

# 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