I have specs that ran fine in Rails 2.02/RSpec 1.13 that are failing on Rails 2.1/RSpec 1.14.<br><br>There is one problem and one issue:<br><br>problem: sometimes (but not always) I get a NoMethodError referencing a has_many association<br>
<br>issue: in helper specs, instance variables don&#39;t get set unless the HelperModule is included.&nbsp; Using the preferred helper.&lt;method&gt; I can&#39;t seem to find a way to check that an instance variable is set:<br>
<br>I have several specs that used to look like:<br><br>&nbsp; it &quot;page_title should assign @browser_title&quot; do<br>&nbsp;&nbsp;&nbsp; page_title(&quot;foo&quot;)<br>&nbsp;&nbsp;&nbsp; @browser_title.should == &quot;foo&quot;<br>&nbsp; end<br><br><br>Now changed to:<br>
<br>&nbsp; it &quot;page_title should assign @browser_title&quot; do<br>&nbsp;&nbsp;&nbsp; helper.page_title(&quot;foo&quot;)<br>&nbsp;&nbsp;&nbsp; helper.assigns[:browser_title].should == &quot;foo&quot;<br>&nbsp;&nbsp;&nbsp; # also tried: assigns[:browser_title].should == &quot;foo&quot;<br>
&nbsp; end<br><br>The output is:<br><br>expected: &quot;foo&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp; got: nil (using ==)<br><br><br>Any help appreciated.<br>