journalduhacker/spec/support/blueprints.rb
2012-08-24 10:57:10 -05:00

20 lines
387 B
Ruby

require 'machinist/active_record'
User.blueprint do
email { "user-#{sn}@example.com" }
password { "blah blah" }
password_confirmation { object.password }
username { "username#{sn}" }
end
Story.blueprint do
user_id { User.make }
title { "story title #{sn}" }
url { "http://example.com/#{sn}" }
end
Tag.blueprint do
tag { "tag-#{sn}" }
description { "tag #{sn}" }
end