Sha256: 1140df563be3d89ff7af6c4fe5cd6cd748714de1b5c53979aa69bd219882a4d3

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

FactoryGirl.define do
  factory :fine_print_signature, :class => FinePrint::Signature do
    association :contract, :factory => [:fine_print_contract, :published]

    transient do
      user_factory :user
    end

    after(:build) do |signature, evaluator|
      signature.user ||= FactoryGirl.build(evaluator.user_factory)
    end
  end  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fine_print-2.3.1 spec/factories/fine_print/signature.rb
fine_print-2.3.0 spec/factories/fine_print/signature.rb
fine_print-2.2.1 spec/factories/fine_print/signature.rb
fine_print-2.2.0 spec/factories/fine_print/signature.rb