search for: m6b47bae9

Displaying 1 result from an estimated 1 matches for "m6b47bae9".

2007 Aug 04
5
reusable specs - almost there
...all the behaviours and examples common to all the controllers, and that file gets loaded from an actual controller spec. The generic file knows which controller to test by calling kontroller(), which is defined in the controller spec. here''s a very simplified example: http://pastebin.com/m6b47bae9 It works great when I run the specs individually, but when I use rake, specs begin to fail and i think it''s because the value of kontroller() is set to whatever it returns the first time it gets called. Here''s the rake output from running the specs shown above: FooController .F...