Ruby on Rails Saturday, April 30, 2011


http://jeffkreeftmeijer.com/2011/acceptance-testing-using-capybaras-new-rspec-dsl/

A lot of people prefer RSpec for integration testing too. You only have to deal one test framework RSpec for all your testing. 

On Sat, Apr 30, 2011 at 9:35 AM, Phoenix Rising <polarisrising@gmail.com> wrote:
So I wanted to cook up a quick integration test for something, and I'm
using rspec.  I personally just don't like Cucumber - just a personal
preference, not a slam to the test framework at all - and wanted to
stick to just pure rspec.  So I dumped a quick spec file in spec/
reqests and ran it, and of course everything works.

But is this considered bad form, or a less-than-good practice?  I've
never written a "request spec" before, so I'm probably mis-using it,
but I'd sure like to hear of better ways to do an integration test
under rspec where I can just run something like 'rake
spec:integration' (which doesn't exist by default).  This was the best
I could do in a pinch, but wouldn't mind hearing some feedback on a
better way to do it in the future - WITHOUT cucumber, selenium,
webrat, capbybara, etc. etc. ;-)

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment