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.84 spec/factories/system/roles.rb
renalware-core-2.0.83 spec/factories/system/roles.rb
renalware-core-2.0.82 spec/factories/system/roles.rb
renalware-core-2.0.81 spec/factories/system/roles.rb
renalware-core-2.0.80 spec/factories/system/roles.rb
renalware-core-2.0.79 spec/factories/system/roles.rb
renalware-core-2.0.78 spec/factories/system/roles.rb
renalware-core-2.0.77 spec/factories/system/roles.rb
renalware-core-2.0.76 spec/factories/system/roles.rb
renalware-core-2.0.75 spec/factories/system/roles.rb
renalware-core-2.0.74 spec/factories/system/roles.rb
renalware-core-2.0.73 spec/factories/system/roles.rb
renalware-core-2.0.72 spec/factories/system/roles.rb
renalware-core-2.0.71 spec/factories/system/roles.rb
renalware-core-2.0.70 spec/factories/system/roles.rb
renalware-core-2.0.69 spec/factories/system/roles.rb
renalware-core-2.0.68 spec/factories/system/roles.rb
renalware-core-2.0.67 spec/factories/system/roles.rb
renalware-core-2.0.64 spec/factories/system/roles.rb
renalware-core-2.0.63 spec/factories/system/roles.rb