Sha256: 905fbb7b2fbb28f4c9030c75cb047ef3c750ed540252f2be2edfaf73c5b39d63
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
require "spec_helper" require "rolify/shared_examples/shared_examples_for_roles" require "rolify/shared_examples/shared_examples_for_dynamic" require "rolify/shared_examples/shared_examples_for_scopes" require "rolify/shared_examples/shared_examples_for_callbacks" describe Rolify do def user_class User end def role_class Role end it_behaves_like Rolify::Role it_behaves_like "Role.scopes" it_behaves_like Rolify::Dynamic it_behaves_like "Rolify.callbacks" context 'cache', pending: true do let(:user) { User.first } before { user.grant(:zombie) } specify do expect(user).to have_role(:zombie) user.remove_role(:zombie) expect(user).to_not have_role(:zombie) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rolify-3.5.2 | spec/rolify/role_spec.rb |
rolify-3.5.1 | spec/rolify/role_spec.rb |
rolify-3.5.0 | spec/rolify/role_spec.rb |