[rspec-users] Testing controller plugin
Matt Wynne
matt at mattwynne.net
Mon Feb 1 11:20:41 EST 2010
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.
cheers,
Matt
http://mattwynne.net
+447974 430184
More information about the rspec-users
mailing list