Closed bettysteger closed 12 years ago
You probably need to learn capybara and how to configure selenium or any driver that supports js. I suggest starting by reading capybara docs and, if you can't find a solution, asking in its mailing list.
You should only open issues in github if you know for sure that there's some bug in a specific library.
thanks for your help, and sorry for my overhasty question!
for your information i changed the following:
in spec_helper.rb
config.use_transactional_fixtures = false
and in the test
scenario 'Tvshow index', :js => true do
hi, i am using steak (2.0.0) capybara (>= 1.0.0) rspec-rails (>= 2.5.0)
and want to test if the right object appears, my test:
i have a controller with:
and in my application.js is the following code:
when i start de rails server it works, but when i run the test nothing happens! the #upcoming doesn't change and i've found that nothing happens in the getJSON function (only in the test, in development it works just fine!)