Sha256: 52412e25a264e65834fbac8fdaa6c523857cfbd68573030a233a918aeb620613

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

FactoryGirl.define do
	sequence(:mbid) {"#{SecureRandom.hex(8)}-#{SecureRandom.hex(4)}-#{SecureRandom.hex(4)}-#{SecureRandom.hex(4)}-#{SecureRandom.hex(12)}"}
	sequence(:release_date) {Time.at(from + rand * (to.to_f - from.to_f))}

	factory :release do
		mbid
		release_date
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
musicbrainz_ruby-0.1.3 spec/factories.rb