[rspec-users] controller vars for examples

Tim Stevens lists at ruby-forum.com
Wed Jul 9 15:08:01 EDT 2008


How do I override the value of a controller variable in a controller
spec. For ex, if I have an action with an array, I want to have examples
with different variables in the array

def testing
 my_array = [1,2,4]

How do I test this with diff vals for my array?

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

More information about the rspec-users mailing list