Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Corigindo factory de curso para de adaptar as novas validacoes do modelo
  • Loading branch information
pedromamede committed Oct 26, 2013
1 parent 1e800aa commit 5e3b97b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/factories/curso.rb
Expand Up @@ -14,8 +14,8 @@
link_pagamento "paypal.com"

after(:build) do |f|
f.instrutor_id = Instrutor.create(nome: "Milfont")
f.tema_id = Tema.create(nome: "Rails")
f.instrutor_id = Instrutor.create(nome: "Milfont").id
f.tema_id = Tema.create(nome: "Rails").id
end
end

Expand Down

0 comments on commit 5e3b97b

Please sign in to comment.