Welcome to mirror list, hosted at ThFree Co, Russian Federation.

policy_actor_spec.rb « concerns « policies « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7271cbb4a9d846ba143a763382e5218332dff9e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.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