Commit 18a80c93d7c750baeafb2ded3768de362cc3e676
1 parent
0d5da1e6
Exists in
master
and in
22 other branches
manage_products: fix test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/manage_products_helper_test.rb
... | ... | @@ -101,7 +101,7 @@ class ManageProductsHelperTest < ActionView::TestCase |
101 | 101 | category = fast_create(ProductCategory, :name => 'Category 1', :environment_id => @environment.id) |
102 | 102 | product = fast_create(Product, :product_category_id => category.id) |
103 | 103 | |
104 | - expects(:ui_button_to_remote).with('link to edit', {:update => "product-info", :loading => "loading_for_button('#edit-product-remote-button-ui-info')", :url => {:controller => 'manage_products', :action => 'edit', :id => product.id, :field => 'info'}, :complete => "$('#edit-product-button-ui-info').hide()", :method => :get}, :id => 'edit-product-remote-button-ui-info').returns('LINK') | |
104 | + expects(:ui_button_to_remote).with('link to edit', {:update => "product-info", :url => {:controller => 'manage_products', :action => 'edit', :id => product.id, :field => 'info'}, :complete => "jQuery('#edit-product-button-ui-info').hide()", :method => :get, :loading => "loading_for_button('#edit-product-remote-button-ui-info')", }, :id => 'edit-product-remote-button-ui-info').returns('LINK') | |
105 | 105 | |
106 | 106 | assert_equal 'LINK', edit_product_ui_button_to_remote(product, 'info', 'link to edit') |
107 | 107 | end | ... | ... |