From 6600d36c3bfcc8dbd20ffab23f5d8f0440e2fde9 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Fri, 23 Nov 2012 13:50:09 -0600 Subject: [PATCH] fix tests by creating tag1 and tag2 tags so story blueprint can use them --- spec/support/blueprints.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/spec/support/blueprints.rb b/spec/support/blueprints.rb index aa4d6b2..3fff759 100644 --- a/spec/support/blueprints.rb +++ b/spec/support/blueprints.rb @@ -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