Skip to content
Browse files

'explain' why we have to set cost_price

  • Loading branch information...
1 parent 5cd0191 commit 80c8cc096baf0e2eed67673575991231bb4e2b2f @radar committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/requests/de/admin/products_spec.rb
View
1 spec/requests/de/admin/products_spec.rb
@@ -9,6 +9,7 @@
it "displays price in correct format" do
visit spree.edit_admin_product_path(product)
fill_in "product_price", :with => "9,99"
+ # No clue WHY we have to set this, it's just necessary. Ugh.
fill_in "product_cost_price", :with => "10"
click_button I18n.t("update")
Nokogiri::HTML(page.body).css("input#product_price")[0]["value"].should == "9,99"

0 comments on commit 80c8cc0

Please sign in to comment.
Something went wrong with that request. Please try again.