Matt Wynne wrote:
On 1 Feb 2010, at 15:14, Phillip Koebbe wrote:
I have just recently started creating some plugins, mainly of the
controller variety. I have been looking for a tutorial or other
documentation detailing how to go about testing these plugins with
RSpec, but have not yet found anything helpful. Can anyone point me
toward such a thing?
Create a controller in your specs which uses the plugin in an
exemplary way, then asserts the behaviour of that controller.
Thanks, Matt. I have some parts of it working now, but am stumped when
trying to call an action. I need to do a post :create, but post is not a
known method. Do you happen to know of a controller plugin that used
RSpec that I could peruse?
Thanks,
Phillip
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users