fix tests by creating tag1 and tag2 tags so story blueprint can use them
This commit is contained in:
parent
b8f3ffa30b
commit
6600d36c3b
|
@ -7,14 +7,18 @@ User.blueprint do
|
||||||
username { "username#{sn}" }
|
username { "username#{sn}" }
|
||||||
end
|
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
|
Story.blueprint do
|
||||||
user_id { User.make }
|
user_id { User.make }
|
||||||
title { "story title #{sn}" }
|
title { "story title #{sn}" }
|
||||||
url { "http://example.com/#{sn}" }
|
url { "http://example.com/#{sn}" }
|
||||||
tags_a { [ "tag1", "tag2" ] }
|
tags_a { [ "tag1", "tag2" ] }
|
||||||
end
|
end
|
||||||
|
|
||||||
Tag.blueprint do
|
|
||||||
tag { "tag-#{sn}" }
|
|
||||||
description { "tag #{sn}" }
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue