Sha256: 3688d906ae9ef9dea3c51d5e8b173aa73e4ac44416d07afd589c5fce19d639cf

Contents?: true

Size: 477 Bytes

Versions: 118

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :role, class: "Renalware::Role" do
    initialize_with { Renalware::Role.find_or_create_by(name: name) }

    name { :super_admin }
    hidden { false }

    trait :super_admin do
      name { :super_admin }
      hidden { true }
    end

    trait :admin do
      name { :admin }
    end

    trait :clinical do
      name { :clinical }
    end

    trait :read_only do
      name { :read_only }
    end
  end
end

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
renalware-core-2.0.104 spec/factories/system/roles.rb
renalware-core-2.0.103 spec/factories/system/roles.rb
renalware-core-2.0.102 spec/factories/system/roles.rb
renalware-core-2.0.101 spec/factories/system/roles.rb
renalware-core-2.0.100 spec/factories/system/roles.rb
renalware-core-2.0.99 spec/factories/system/roles.rb
renalware-core-2.0.98 spec/factories/system/roles.rb
renalware-core-2.0.97 spec/factories/system/roles.rb
renalware-core-2.0.96 spec/factories/system/roles.rb
renalware-core-2.0.95 spec/factories/system/roles.rb
renalware-core-2.0.94 spec/factories/system/roles.rb
renalware-core-2.0.93 spec/factories/system/roles.rb
renalware-core-2.0.92 spec/factories/system/roles.rb
renalware-core-2.0.91 spec/factories/system/roles.rb
renalware-core-2.0.90 spec/factories/system/roles.rb
renalware-core-2.0.89 spec/factories/system/roles.rb
renalware-core-2.0.88 spec/factories/system/roles.rb
renalware-core-2.0.87 spec/factories/system/roles.rb
renalware-core-2.0.86 spec/factories/system/roles.rb
renalware-core-2.0.85 spec/factories/system/roles.rb