[rspec-users] Using resource_controller (make_resourceful etc) and testing the

Pat Maddox pergesu at gmail.com
Thu Dec 11 14:03:50 EST 2008


Ben Mabey <ben at benmabey.com> writes:

> Andrew Premdas wrote:
>> Hi all,
>>
>> Trying to get some opinions about the use of such plugins and in
>> particular about how they test, and how we test with them. Can they
>> work well with BDD or do they do to much magic and create
>> difficulties for features and tests
>>
>> TIA
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>

>My current thinking on the matter is this: Use features, but skip the
>controller specs.  The features verify the actual behaviour of them
>alongside the rest of the stack and provide me with the best confidence
>that I'm using the plugin correctly and giving the end-users the
>functionality that the app needs to.  I don't see controller specs
>adding any additional value at this point.  We would simply be testing
>the plugin's code over and over again...  There is also no design
>benefit from mocking/stubbing the plugins code either.

+2

Pat


More information about the rspec-users mailing list