Diego Dias
Diego Dias

Reputation: 914

How to test ajax with Capybara + Rails

Guys.

I'm trying test using Rails 3.1.1 + Rspec + Capybara my form that use AJAX, but no success. Would be the correct when the field postal_code lost focus the street would be loaded, but this does not happen. This is source code of the my test: source

Upvotes: 0

Views: 297

Answers (1)

socjopata
socjopata

Reputation: 5095

What kind of driver are you using with Capybara? For javascript - enabled integration testing you need to use, for example: selenium.

Upvotes: 2

Related Questions