diff options
Diffstat (limited to 'spec/policies')
-rw-r--r-- | spec/policies/concerns/crud_policy_helpers_spec.rb | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/spec/policies/concerns/crud_policy_helpers_spec.rb b/spec/policies/concerns/crud_policy_helpers_spec.rb index 69bf9ad12d6..1e7b99178c3 100644 --- a/spec/policies/concerns/crud_policy_helpers_spec.rb +++ b/spec/policies/concerns/crud_policy_helpers_spec.rb @@ -17,34 +17,37 @@ RSpec.describe CrudPolicyHelpers do describe '.create_read_update_admin_destroy' do it 'returns an array of the appropriate abilites given a feature name' do - expect(PolicyTestClass.create_read_update_admin_destroy(feature_name)).to eq([ - :read_foo, - :create_foo, - :update_foo, - :admin_foo, - :destroy_foo - ]) + expect(PolicyTestClass.create_read_update_admin_destroy(feature_name)).to eq( + [ + :read_foo, + :create_foo, + :update_foo, + :admin_foo, + :destroy_foo + ]) end end describe '.create_update_admin_destroy' do it 'returns an array of the appropriate abilites given a feature name' do - expect(PolicyTestClass.create_update_admin_destroy(feature_name)).to eq([ - :create_foo, - :update_foo, - :admin_foo, - :destroy_foo - ]) + expect(PolicyTestClass.create_update_admin_destroy(feature_name)).to eq( + [ + :create_foo, + :update_foo, + :admin_foo, + :destroy_foo + ]) end end describe '.create_update_admin' do it 'returns an array of the appropriate abilites given a feature name' do - expect(PolicyTestClass.create_update_admin(feature_name)).to eq([ - :create_foo, - :update_foo, - :admin_foo - ]) + expect(PolicyTestClass.create_update_admin(feature_name)).to eq( + [ + :create_foo, + :update_foo, + :admin_foo + ]) end end end |