Model testing with rspec

I have a piece of code that I want to test:

class User < ActiveRecord::Base

 has_many :servers, :dependent=> :destroy

end

Please give an example of RSpec code that tests the association code.

5
задан Nerian 6 December 2011 в 12:28
поделиться