turkan wrote in post #962004: >> 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
Then that tells me that their stories are too verbose. > It is the same discussion like erb vs haml. No, it really isn't. ERb is not going to camouflage poorly designed views. Steak looks very much like that's its primary design goal: making it easier to write excessively intrusive stories. I would be very curious to see some sample Steak tests. > >> 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. Doesn't Capybara do all that regardless? Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

