I was wrong, the Model.valid_values wasn't returning the good stuff. So:
step 1.
Model.should_receive!(:valid_values).and_return(/my_value_foo/)
step 2. (and this is a must)
ActionController::Routing::Routes.reload!

and it all works like a charm.
enrico
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to