small medium large xlarge

08 May 2013, 17:25
Yoav Kleinberger (1 post)

in this chapter we add some jquery that updates the html of the cart. This is then tested for, but the test fails for some weird reason. any ideas?

1) Failure: LineItemsControllerTest#test_should_create_line_item_via_ajax [/home/yoav/work/depot/test/controllers/line_items_controller_test.rb:33]: No JQuery call matches [:html, “#cart”]

How come?

08 May 2013, 18:58
Sam Ruby (632 posts)

Can you share what you have in your app/views/line_items/create.js.erb file? Does it contain the following line?

You must be logged in to comment