Sha256: ec9476bd16a4ef151cf9708bbbaf1d73eb922cb8f15bfbb7c2c5b747e9e3f750

Contents?: true

Size: 339 Bytes

Versions: 9

Compression:

Stored size: 339 Bytes

Contents

require 'spec_helper'
class User
  include Roles::Generic 

  attr_accessor :name
   
  strategy :roles_mask
  valid_roles_are :admin, :user, :guest
  
  def initialize name, *new_roles
    self.name = name
    self.roles = new_roles
  end 
end

describe "Roles Generic: :roles_mask strategy" do
  require "roles_generic/rspec/test_it"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roles_generic-0.5.0 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.9 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.8 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.7.2 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.7.1 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.7 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.6 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.5 spec/roles_generic/strategy/multi/roles_mask_spec.rb
roles_generic-0.3.4 spec/roles_generic/strategy/multi/roles_mask_spec.rb