lib/solidus_jwt/factories.rb in solidus_jwt-0.1.0 vs lib/solidus_jwt/factories.rb in solidus_jwt-1.0.0.beta1

- old
+ new

@@ -1,6 +1,17 @@ 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