> In what way not?  I suspect that if you can't write your Cucumber
> stories in English, you're putting too much into them that should be in
> model specs...

In some cases developers choose to simply not want the verbosity of
Cucumber.
Belief it or not :-P It is the same discussion like erb vs haml.

> I would just make a request to the appropriate URL, and then test the
> returned JSON.  Just like testing HTML.  There's no reason to complicate
> it further.

Ok, the main problem here seems by investigating a bit further that
you Cucumber guys have access to the
ActionDispatch::Integration::RequestHelpers
 methods, like xhr and post. But it is not included in with Steak, and
I don't know how to get it working there. I will refine my question
and start a new thread.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to