Sha256: dbf98633d92b8df143473c7325811ac868bf875a3abff4d60a8a8a9117adc197
Contents?: true
Size: 272 Bytes
Versions: 4
Compression:
Stored size: 272 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?).returns(true) model.stubs(:new_record?).returns(false) } end end
Version data entries
4 entries across 4 versions & 1 rubygems