From 3beb633ed958d70a8da248c3ed50bdc331fecc05 Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 31 Jan 2014 11:24:14 +0800 Subject: [PATCH] BOM: 'update-pending' class removed when value is init value --- spec/features/admin/bulk_order_management_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/features/admin/bulk_order_management_spec.rb b/spec/features/admin/bulk_order_management_spec.rb index 4ad336e66d..0dfe2a779f 100644 --- a/spec/features/admin/bulk_order_management_spec.rb +++ b/spec/features/admin/bulk_order_management_spec.rb @@ -101,6 +101,14 @@ feature %q{ fill_in "quantity", :with => 2 page.should have_css "input[name='quantity'].update-pending" end + + it "removes the class 'update-pending' from input elements when initial (DB) value is entered" do + page.should_not have_css "input[name='quantity'].update-pending" + fill_in "quantity", :with => 2 + page.should have_css "input[name='quantity'].update-pending" + fill_in "quantity", :with => 5 + page.should_not have_css "input[name='quantity'].update-pending" + end end end