Mark admin enterprises form dirty when property removed

This commit is contained in:
Rohan Mitchell
2016-08-31 15:40:21 +10:00
parent 0e01350107
commit 3e565ad7cb
4 changed files with 19 additions and 2 deletions

View File

@@ -439,7 +439,10 @@ feature %q{
end
within("#spree_producer_property_#{pp.id}") { page.find('a.remove_fields').click }
click_button 'Update'
expect(page).to have_content 'Enterprise "First Supplier" has been successfully updated!'
supplier1.producer_properties(true).should be_empty
end
end