Can you provide more information about what you are spec'ing? <br><br>Zach<br><br><div class="gmail_quote">On Wed, Jul 9, 2008 at 3:08 PM, Tim Stevens <<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
How do I override the value of a controller variable in a controller<br>
spec. For ex, if I have an action with an array, I want to have examples<br>
with different variables in the array<br>
<br>
def testing<br>
my_array = [1,2,4]<br>
end<br>
<br>
How do I test this with diff vals for my array?<br>
<br>
<br>
<br>
Thanks<br>
<font color="#888888">--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Zach Dennis<br><a href="http://www.continuousthinking.com">http://www.continuousthinking.com</a>