[rspec-users] Testing controller plugin
phillipkoebbe at gmail.com
Sun Feb 7 21:34:37 EST 2010
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?
More information about the rspec-users