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-3.0.6 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.5 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.4 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.3 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.2 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.1 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.rc6 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.rc5 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.rc4 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.rc3 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.rc2 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.22 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.21 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.10 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.20 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.9 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.18 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.8 spec/auth/roles/role_type_spec.rb