Questions tagged [webrat]

Webrat is an acceptance testing library for Web applications written in Ruby.

Webrat is an acceptance testing tool for Ruby, which simulates a browser without JavaScript support. But it can also be combined with a web automation framework like Watir to implement browser based web automation tests.

183 questions
0
votes
1 answer

Acceptance testing of sinatra app using webrat fails

I am trying to test a ruby authentication app using minitest and webrat but get errors. Tests like visit '/' fail with an error Status 200 expected but was 404. Tests containing code like fill_in :email, :with => "first@company.com" fail with error…
barerd
  • 835
  • 3
  • 11
  • 31
0
votes
1 answer

Test that a given selector contains no content (i.e. is empty) using Rspec

I am trying to get an RSpec integration test to fail. Given the following HTML fragment:

There aren't any travel promotions... yet!

When I run the following Rspec…
Chris Bloom
  • 3,526
  • 1
  • 33
  • 47
-1
votes
1 answer

cucumber + capybara step definition - sending POST requests

i have the following step definition: When /^I upload it$/ do end which relates to a file upload. the visit method in capybara, from what i can tell is a GET only method .. and the only way to do a POST request is by implementation: visit…
djjjuk
  • 368
  • 1
  • 2
  • 14
1 2 3
12
13