BOM: 'update-pending' class removed when value is init value

This commit is contained in:
Rob H
2014-01-31 11:24:14 +08:00
parent 7dbb7a5c2c
commit 3beb633ed9

View File

@@ -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