spec/lib/mohawk/adapters/uia/control_spec.rb in mohawk-0.4.2 vs spec/lib/mohawk/adapters/uia/control_spec.rb in mohawk-0.4.3

- old
+ new

@@ -27,10 +27,10 @@ class HasPattern < Mohawk::Adapters::UiaAdapter::Control valid_patterns :this, :that end context '#patterns' do - Given { parent.stub(:find) {|l| @locator = l } } + Given { allow(parent).to receive(:find) {|l| @locator = l } } Given(:no_filter) { new_control(id: 'hi') } Given(:some_filter) { HasPattern.new adapter, id: 'hi' } Given(:overridden) { HasPattern.new adapter, id: 'hi', pattern: :overridden } def pattern(control)