spec/dsl/assertions_spec.rb in remarkable-3.0.8 vs spec/dsl/assertions_spec.rb in remarkable-3.0.9
- old
+ new
@@ -31,10 +31,10 @@
@matcher.failure_message.should == 'Expected that 1 is included in [4]'
end
it 'should accept blocks as argument' do
should_not single_contain(4)
- should single_contain(4){ |array| array << 4 }
+ should single_contain(4){ self << 4 }
end
it 'should provide an interface for default_options hook' do
matcher = Remarkable::Specs::Matchers::CollectionContainMatcher.new(1, :args => true)
matcher.instance_variable_get('@options').should == { :working => true, :args => true }