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.11.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.10.2 spec/auth/roles/role_type_spec.rb
ddr-models-2.10.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.10.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.10.0.rc2 spec/auth/roles/role_type_spec.rb
ddr-models-2.10.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-2.9.2 spec/auth/roles/role_type_spec.rb
ddr-models-2.9.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.9.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.9.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-2.8.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.8.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.6 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.5 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.4 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.3 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.2 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.7.0.rc1 spec/auth/roles/role_type_spec.rb