Rails functionality is well tested. But if you want to test I shal 
explain based on thoughtbot shoulda which I am using There are several 
macros given by shoulda
In your case in test/unit/album_test.rb you can write

should_have_many :photos
    In test/unit/photo_test.rb

should_belong_to :album


Sijo
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to