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.42 spec/factories/system/roles.rb
renalware-core-2.0.41 spec/factories/system/roles.rb
renalware-core-2.0.40 spec/factories/system/roles.rb
renalware-core-2.0.39 spec/factories/system/roles.rb
renalware-core-2.0.38 spec/factories/system/roles.rb
renalware-core-2.0.37 spec/factories/system/roles.rb
renalware-core-2.0.36 spec/factories/system/roles.rb
renalware-core-2.0.35 spec/factories/system/roles.rb
renalware-core-2.0.34 spec/factories/system/roles.rb
renalware-core-2.0.33 spec/factories/system/roles.rb
renalware-core-2.0.32 spec/factories/system/roles.rb
renalware-core-2.0.31 spec/factories/system/roles.rb
renalware-core-2.0.30 spec/factories/system/roles.rb
renalware-core-2.0.28 spec/factories/system/roles.rb
renalware-core-2.0.27 spec/factories/system/roles.rb
renalware-core-2.0.26 spec/factories/system/roles.rb
renalware-core-2.0.25 spec/factories/system/roles.rb
renalware-core-2.0.24 spec/factories/system/roles.rb
renalware-core-2.0.23 spec/factories/system/roles.rb
renalware-core-2.0.22 spec/factories/system/roles.rb