From 24d97bd754df5dd83c1be560aee52b42059c3a39 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 6 Mar 2014 10:36:49 +1100 Subject: [PATCH] Fix spec race condition --- spec/features/admin/variants_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/variants_spec.rb b/spec/features/admin/variants_spec.rb index 7202867bd3..51aefd9e69 100644 --- a/spec/features/admin/variants_spec.rb +++ b/spec/features/admin/variants_spec.rb @@ -106,11 +106,11 @@ feature %q{ # And I delete the property page.all('a.remove_fields').first.click + wait_until { p.reload.property('fooprop').nil? } # Then the property should have been deleted page.should_not have_field 'product_product_properties_attributes_0_property_name', with: 'fooprop', visible: true page.should_not have_field 'product_product_properties_attributes_0_value', with: 'fooval', visible: true - p.reload.property('fooprop').should be_nil end end end