[LRUG] Cucumber and RSpec on Rails

Steven Mohapi-Banks steven.mohapibanks at me.com
Mon Feb 8 13:40:35 PST 2010


I'd pretty much agree with this - my controller specs these days are pretty much for covering access privileges, security edge cases and the like. I also spec out routing rules quite frequently. Everything else goes in Cucumber stories.

Steve 


On Monday, February 08, 2010, at 07:57PM, "Paul Campbell" <paul at rslw.com> wrote:
>Jordi,
>
>cucumber can (and will, if you want) cover 90% of the cases.
>
>Sometimes you might want to drop down to controller testing for edge
>cases or redirects to  external services and things.
>
>Mostly though, my controller specs remain empty.
>
>Model specs are much more frequent though, for testing things like
>arithmetic, maybe validations, auto-assignment, data transformations
>etc.
>
>Hope this helps,
>
>—Paul
>
>On Mon, Feb 8, 2010 at 7:42 PM, Jordi Noguera Leon
><jordinoguera83 at gmail.com> wrote:
>> Hi there!
>> I'm starting with Cucumber but I'm not sure if/when/how to create specs. In
>> the couple of Railscasts I'seen so far, the guy generates rspec_models and
>> rspec_controllers, but he doesn't code anything inside them... In another
>> screencast I've seen, the guy validates uniqueness of some stuff inside the
>> spec, but I guess that's something you could do using a  scenario, right?
>> Basically, do I need to write any spec or I can do all the stuff in the
>> scenario?
>> Regards,
>> Jordi
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>
>>
>
>
>
>-- 
>
>
>Paul Campbell
>paul at rushedsunlight.com
>- - - - - - - - - - - - - - - - - - -
>blog http://www.pabcas.com
>twitter http://www.twitter.com/paulca
>github http://www.github.com/paulca
>phone +353 87 914 8162
>- - - - - - - - - - - - - - - - - - -
>_______________________________________________
>Chat mailing list
>Chat at lists.lrug.org
>http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>



More information about the Chat mailing list