spec/strategy_spec.rb in motion_bindable-0.2.1 vs spec/strategy_spec.rb in motion_bindable-0.2.2
- old
+ new
@@ -72,9 +72,15 @@
describe '#unbind' do
it 'should respond' do
@strategy.respond_to?(:unbind).should.equal true
end
+
+ it 'should clear the watcher' do
+ wait(0.5) do
+ @strategy.instance_variable_get(:@watching).should.equal nil
+ end
+ end
end
end
end