From 632a31cf48f41b3d0ea52f3b741407d65ab64139 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 14 Jan 2013 16:30:32 +0100 Subject: forgot to include the factory for tickets --- help/test/factories.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 help/test/factories.rb (limited to 'help/test/factories.rb') diff --git a/help/test/factories.rb b/help/test/factories.rb new file mode 100644 index 0000000..919882a --- /dev/null +++ b/help/test/factories.rb @@ -0,0 +1,10 @@ +FactoryGirl.define do + + factory :ticket do + title { Faker::Lorem.sentence } + comments_attributes do + { "0" => { "body" => Faker::Lorem.sentences } } + end + end + +end -- cgit v1.2.3 From 7b323c5dbd7171cf98f69ca159b5aa2174a5d069 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 14 Jan 2013 20:02:17 +0100 Subject: minor: further cleanup - try to leave no record behind --- help/test/factories.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'help/test/factories.rb') diff --git a/help/test/factories.rb b/help/test/factories.rb index 919882a..5b38952 100644 --- a/help/test/factories.rb +++ b/help/test/factories.rb @@ -3,7 +3,7 @@ FactoryGirl.define do factory :ticket do title { Faker::Lorem.sentence } comments_attributes do - { "0" => { "body" => Faker::Lorem.sentences } } + { "0" => { "body" => Faker::Lorem.sentences.join(" ") } } end end -- cgit v1.2.3