I have been using the ruby rest-client to test the webservice integration: see https://github.com/archiloque/rest-client in conjunction with cucumber and rspec. Admittedly in a Sinatra environment but it will work with Rails too. That and Xpath http://ruby-doc.org/stdlib/libdoc/rexml/rdoc/classes/REXML/XPath.html should work for you.
O. On Nov 17, 1:23 pm, Marnen Laibow-Koser <[email protected]> wrote: > turkan wrote in post #962094: > > > On Nov 17, 3:09am, Marnen Laibow-Koser <[email protected]> wrote: > >> turkan wrote in post #962004: > >> Then that tells me that their stories are too verbose. > > > English language is verbose ;-) > > You're right. I used the wrong word. That tells me that their stories > are too *complex*. > > > > >> 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. > > > Steak is a very very thin wrapper around RSpec ... so the test are > > nearly pure Ruby/RSpec (mostly by directly accessing the Capybara > > Api). > > Example (not from me): > > https://github.com/jaimeiniesta/demo_steak_capybara/blob/master/spec/... > > Interesting. I like parts of it, but I think Steak is fundamentally > misconceived. > > One of the big reasons to write Cucumber stories in natural language is > that it stops you thinking like a programmer -- Cucumber stories are > about user-facing functionality, not implementation. Steak, with its > Ruby syntax, completely destroys that difference. Its Ruby DSL is > clever, but there appears to be a great temptation to write RSpec > controller specs with nicer syntax -- which is really not what user > stories are about. > > Have you actually used Cucumber? > > > > >> Doesn't Capybara do all that regardless? > > > Nope, from the Capybara README.rdoc: "The visit method only takes a > > single parameter, the request method is always GET." > > GET is all you need. If you want POST, you should be having the > Capybara robot submit the form by clicking on the button. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > [email protected] > > Sent from my iPhone > > -- > Posted viahttp://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.

