Sha256: ff8aa39e3f52a352a448400f3b72691bcf410e0e9fa8383aba8ab8dd2116daa2

Contents?: true

Size: 449 Bytes

Versions: 40

Compression:

Stored size: 449 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

40 entries across 40 versions & 1 rubygems

Version Path
renalware-core-2.0.21 spec/factories/system/roles.rb
renalware-core-2.0.20 spec/factories/system/roles.rb
renalware-core-2.0.18 spec/factories/system/roles.rb
renalware-core-2.0.17 spec/factories/system/roles.rb
renalware-core-2.0.16 spec/factories/system/roles.rb
renalware-core-2.0.15 spec/factories/system/roles.rb
renalware-core-2.0.14 spec/factories/system/roles.rb
renalware-core-2.0.13 spec/factories/system/roles.rb
renalware-core-2.0.12 spec/factories/system/roles.rb
renalware-core-2.0.11 spec/factories/system/roles.rb
renalware-core-2.0.9 spec/factories/system/roles.rb
renalware-core-2.0.8 spec/factories/system/roles.rb
renalware-core-2.0.7 spec/factories/system/roles.rb
renalware-core-2.0.5 spec/factories/system/roles.rb
renalware-core-2.0.4 spec/factories/system/roles.rb
renalware-core-2.0.3 spec/factories/system/roles.rb
renalware-core-2.0.2 spec/factories/system/roles.rb
renalware-core-2.0.1 spec/factories/system/roles.rb
renalware-core-2.0.0 spec/factories/system/roles.rb
renalware-core-2.0.0.pre.rc13 spec/factories/system/roles.rb