Sha256: 111b5dd79c77686875abc2abe2020320f1d763ad30340533b9a4afcf07c94892

Contents?: true

Size: 236 Bytes

Versions: 9

Compression:

Stored size: 236 Bytes

Contents

FactoryGirl.define do
  factory :body do
    association :post
    sequence(:text) { |n| "Body #{n}" }
    to_create { |model|
      model.write_attribute(:id, 1)
      model.stubs(persisted?: true, new_record?: false)
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ninja-model-1.0.5 spec/support/factories/body.rb
ninja-model-1.0.4 spec/support/factories/body.rb
ninja-model-1.0.3 spec/support/factories/body.rb
ninja-model-1.0.2 spec/support/factories/body.rb
ninja-model-1.0.1 spec/support/factories/body.rb
ninja-model-1.0.0 spec/support/factories/body.rb
ninja-model-0.9.6 spec/support/factories/body.rb
ninja-model-0.9.5 spec/support/factories/body.rb
ninja-model-0.9.4 spec/support/factories/body.rb