Sha256: ba4fa9f35d6fa13b4df85028e6206f9caed932f4e252e041a766af889c118cd1

Contents?: true

Size: 546 Bytes

Versions: 6

Compression:

Stored size: 546 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 "Using Rolify with custom User and Role class names" do
  def user_class
    Customer
  end

  def role_class
    Privilege
  end
  
  it_behaves_like Rolify::Role
  it_behaves_like "Role.scopes"
  it_behaves_like Rolify::Dynamic
  it_behaves_like "Rolify.callbacks"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rolify-6.0.1 spec/rolify/custom_spec.rb
rolify-6.0.0 spec/rolify/custom_spec.rb
rolify-5.3.0 spec/rolify/custom_spec.rb
rolify-5.2.0 spec/rolify/custom_spec.rb
rolify-5.1.0 spec/rolify/custom_spec.rb
rolify-5.0.0 spec/rolify/custom_spec.rb