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.1.1 spec/factories/system/roles.rb
renalware-core-2.1.0 spec/factories/system/roles.rb
renalware-core-2.0.167 spec/factories/system/roles.rb
renalware-core-2.0.166 spec/factories/system/roles.rb
renalware-core-2.0.165 spec/factories/system/roles.rb
renalware-core-2.0.164 spec/factories/system/roles.rb
renalware-core-2.0.163 spec/factories/system/roles.rb
renalware-core-2.0.162 spec/factories/system/roles.rb
renalware-core-2.0.161 spec/factories/system/roles.rb
renalware-core-2.0.160 spec/factories/system/roles.rb
renalware-core-2.0.159 spec/factories/system/roles.rb
renalware-core-2.0.158 spec/factories/system/roles.rb
renalware-core-2.0.157 spec/factories/system/roles.rb
renalware-core-2.0.156 spec/factories/system/roles.rb
renalware-core-2.0.155 spec/factories/system/roles.rb
renalware-core-2.0.153 spec/factories/system/roles.rb
renalware-core-2.0.152 spec/factories/system/roles.rb
renalware-core-2.0.151 spec/factories/system/roles.rb
renalware-core-2.0.149 spec/factories/system/roles.rb
renalware-core-2.0.148 spec/factories/system/roles.rb