OSDN Git Service

fix test
[pettanr/pettanr.git] / spec / factories / scroll.rb
index c68c80e..3b8face 100644 (file)
@@ -1,10 +1,10 @@
 # -*- encoding: utf-8 -*-\r
 FactoryGirl.define do\r
-  factory :scroll001, :class => Scroll do |i|\r
+  factory :scroll_hello, :class => Scroll do |i|\r
     i.title 'おめざめ2'\r
     i.description ''\r
     i.visible 1\r
-    i.author_id 1\r
+    association :author, factory: :author_yas\r
   end\r
   factory :scroll002, :class => Scroll do |i|\r
     i.title '意味ないし。'\r