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.62 spec/factories/system/roles.rb
renalware-core-2.0.61 spec/factories/system/roles.rb
renalware-core-2.0.60 spec/factories/system/roles.rb
renalware-core-2.0.58 spec/factories/system/roles.rb
renalware-core-2.0.57 spec/factories/system/roles.rb
renalware-core-2.0.56 spec/factories/system/roles.rb
renalware-core-2.0.55 spec/factories/system/roles.rb
renalware-core-2.0.54 spec/factories/system/roles.rb
renalware-core-2.0.53 spec/factories/system/roles.rb
renalware-core-2.0.52 spec/factories/system/roles.rb
renalware-core-2.0.51 spec/factories/system/roles.rb
renalware-core-2.0.50 spec/factories/system/roles.rb
renalware-core-2.0.48 spec/factories/system/roles.rb
renalware-core-2.0.47 spec/factories/system/roles.rb
renalware-core-2.0.46 spec/factories/system/roles.rb
renalware-core-2.0.45 spec/factories/system/roles.rb
renalware-core-2.0.44 spec/factories/system/roles.rb
renalware-core-2.0.43 spec/factories/system/roles.rb