Jesse Farmer
Jesse Farmer

Reputation: 459

Testing JavaScript create through AJAX in Rails App

I am developing an eCommerce gem with Rails. I am trying to keep as much of the code in the app as possible. I want to make updates to, say, the shopping cart through Ajax, and then return data and an event back to allow the view to be noted in the view.

I am looking for a way to determine what becomes available to my JavaScript when and Ajax call is returned. I want to track the event, and so forth.

I am looking more for advice here than an answer, but what kind of testing framework are developers generally using for this?

I use RSpec, Capybara, and FactoryGirl for unit, request, and controller testing currently.

Upvotes: 0

Views: 40

Answers (1)

Prakash Murthy
Prakash Murthy

Reputation: 13067

This should be helpful: Setting up javascript testing on a rails app with konacha

Upvotes: 1

Related Questions