Sha256: 6614fcfdb54b87fe3c32d4820431f4c789bdafcf53bbb94bd8d07c646590a13a

Contents?: true

Size: 245 Bytes

Versions: 15

Compression:

Stored size: 245 Bytes

Contents

FactoryGirl.define do
	factory :comment, class: Proclaim::Comment do
		sequence(:author) {|n| "author#{n}"}
		sequence(:body) {|n| "body#{n}"}
		post

		factory :published_comment do
			association :post, factory: :published_post
		end
	end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
proclaim-0.5.3 test/factories/proclaim/comment.rb
proclaim-0.5.2 test/factories/proclaim/comment.rb
proclaim-0.5.1 test/factories/proclaim/comment.rb
proclaim-0.5.0 test/factories/proclaim/comment.rb
proclaim-0.4.0 test/factories/proclaim/comment.rb
proclaim-0.3.1 test/factories/proclaim/comment.rb
proclaim-0.3.0 test/factories/proclaim/comment.rb
proclaim-0.2.4 test/factories/proclaim/comment.rb
proclaim-0.2.2 test/factories/proclaim/comment.rb
proclaim-0.2.1 test/factories/proclaim/comment.rb
proclaim-0.2.0 test/factories/proclaim/comment.rb
proclaim-0.1.3 test/factories/proclaim/comment.rb
proclaim-0.1.2 test/factories/proclaim/comment.rb
proclaim-0.1.1 test/factories/proclaim/comment.rb
proclaim-0.1.0 test/factories/proclaim/comment.rb