spec/javascript_spec.rb in freeform-2.0.3 vs spec/javascript_spec.rb in freeform-2.0.4
- old
+ new
@@ -41,10 +41,10 @@
end
it 'emits remove event for current association' do
visit url
2.times { click_link 'Add new task' }
- click_link 'Remove'
+ click_link 'Remove', match: :first
page.should have_content 'Removed task field'
page.should_not have_content 'Removed milestone field'
click_link 'Add new milestone'