2018-07-27 05:37:19 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe PolicyActor do
|
2018-07-27 05:37:19 -04:00
|
|
|
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
|