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.4.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.0.rc6 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.3 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.0.rc5 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.0.rc4 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.2 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.0.rc3 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.0.rc2 spec/auth/roles/role_type_spec.rb
ddr-models-2.4.0.rc1 spec/auth/roles/role_type_spec.rb
ddr-models-2.3.2 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.beta.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.3.1 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.alpha.4 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.alpha.3 spec/auth/roles/role_type_spec.rb
ddr-models-2.3.0 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.alpha.2 spec/auth/roles/role_type_spec.rb
ddr-models-3.0.0.alpha.1 spec/auth/roles/role_type_spec.rb
ddr-models-2.2.0 spec/auth/roles/role_type_spec.rb
ddr-models-2.1.3 spec/auth/roles/role_type_spec.rb
ddr-models-2.1.2 spec/auth/roles/role_type_spec.rb