fix tests by creating tag1 and tag2 tags so story blueprint can use them

This commit is contained in:
joshua stein 2012-11-23 13:50:09 -06:00
parent b8f3ffa30b
commit 6600d36c3b

View file

@ -7,14 +7,18 @@ User.blueprint do
username { "username#{sn}" }
end
Tag.blueprint do
tag { "tag-#{sn}" }
description { "tag #{sn}" }
end
# these need to exist for stories to use them
Tag.make!(:tag => "tag1")
Tag.make!(:tag => "tag2")
Story.blueprint do
user_id { User.make }
title { "story title #{sn}" }
url { "http://example.com/#{sn}" }
tags_a { [ "tag1", "tag2" ] }
end
Tag.blueprint do
tag { "tag-#{sn}" }
description { "tag #{sn}" }
end