Photo factory
This commit is contained in:
parent
dce861ff17
commit
07767e62fe
1 changed files with 4 additions and 0 deletions
|
|
@ -44,4 +44,8 @@ end
|
||||||
Factory.define :post do |p|
|
Factory.define :post do |p|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Factory.define :photo do |p|
|
||||||
|
p.image File.open( File.dirname(__FILE__) + '/fixtures/bp.jpeg')
|
||||||
|
|
||||||
|
end
|
||||||
Factory.define(:comment) {}
|
Factory.define(:comment) {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue