Sha256: 5a2cb0e846479394ccb35a4dad260782febeb6c2ba5803206b943ff3e3d131cc

Contents?: true

Size: 467 Bytes

Versions: 4

Compression:

Stored size: 467 Bytes

Contents

FactoryBot.define do
  # Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them.
  #
  # Example adding this to your spec_helper will load these Factories for use:
  # require 'solidus_jwt/factories'
  factory :token, class: SolidusJwt::Token do
    association :user

    trait :expired do
      created_at { 1.year.ago }
    end

    trait :inactive do
      active { false }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_jwt-1.1.0 lib/solidus_jwt/factories.rb
solidus_jwt-1.0.0 lib/solidus_jwt/factories.rb
solidus_jwt-1.0.0.beta2 lib/solidus_jwt/factories.rb
solidus_jwt-1.0.0.beta1 lib/solidus_jwt/factories.rb