Sha256: 6f6e9338a24118caa81d04c4ea08a1783dcd33a96e8d9f35983d7eeace58fb62

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

describe "Role" do
  with_models

  it "normalization" do
    Role.normalize_roles(%w{manager member specific_role user:user1}).should == %w{member specific_role user:user1}
  end

  it "denormalization to higher roles" do
    Role.denormalize_to_higher_roles(%w{member specific_role user:user1}).should == %w{manager member specific_role user:user1}
  end

  it "denormalization to lower roles" do
    Role.denormalize_to_lower_roles(%w{member specific_role user:user1}).should == %w{member specific_role user user:user1}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rad_kit-0.0.10 spec/models/role_spec.rb
rad_kit-0.0.9 spec/models/role_spec.rb