Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test "There's response" do
- postCelso = Post.create(:author => "Celso", :title => "Better way to cook eggs", :text => "Does it make any differente to cook the eggs in a microwave oven rather than in a conventional one?")
- postCelso.save
- post = Post.create(:title => "WTF?", :text => "Do you cook your eggs in an oven?")
- post.replies << postCelso
- assert post.replies[0] == postCelso
- end
Add Comment
Please, Sign In to add comment