title: Testing the "accepts_nested_attributes_for" in unit testing using Rspec
body: <p>I am new to rails and testing models. My model class is like this:</p>
  
  <pre><code>class Tester &lt; Person
    has_one :company
    accepts_nested_attributes_for :skill   
  end
  </code></pre>
  
  <p>And I want to do test for "accepts_nested_attributes_for :skill" using rspec with out any other gem.  How can I accomplish this?</p>