small medium large xlarge

Generic-user-small
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?

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

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

http://media.pragprog.com/titles/rails4/code/rails32/depot_l/app/views/line_items/create.js.erb

  You must be logged in to comment