Sha256: 917850683b1efe494ea6711aefe242cc7d03d4dbfea28ed0dce6dbd454c5761e

Contents?: true

Size: 578 Bytes

Versions: 117

Compression:

Stored size: 578 Bytes

Contents

module Ddr::Auth
  module Roles
    RSpec.describe RoleType do

      subject { described_class.new("Role Type", "Role Description", [:read, :write]) }

      it { should be_frozen }
      its(:title) { should eq("Role Type") }
      its(:title) { should be_frozen }
      its(:label) { should eq("Role Type") }
      its(:to_s) { should eq("Role Type") }
      its(:description) { should eq("Role Description") }
      its(:description) { should be_frozen }
      its(:permissions) { should eq([:read, :write]) }
      its(:permissions) { should be_frozen }

    end
  end
end

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
ddr-models-2.6.2 spec/auth/roles/role_type_spec.rb
ddr-models-2.6.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.6.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.6.0.rc4 spec/auth/roles/role_type_spec.rb
ddr-models-2.6.0.rc3 spec/auth/roles/role_type_spec.rb
ddr-models-2.6.0.rc2 spec/auth/roles/role_type_spec.rb
ddr-models-2.6.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-2.5.3 spec/auth/roles/role_type_spec.rb
ddr-models-2.5.2 spec/auth/roles/role_type_spec.rb
ddr-models-2.5.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.5.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.5.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.16 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.15 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.14 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.13 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.12 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.11 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.8 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.7 spec/auth/roles/role_type_spec.rb