Class Spec::Expectations::Should::NegativeItemHandler
In: lib/spec/expectations/should/have.rb
Parent: ItemHandler

Methods

Public Instance methods

[Source]

     # File lib/spec/expectations/should/have.rb, line 126
126:         def handle_message(sym, *args)
127:           fail_with(build_message(sym, args)) if @target.send("has_#{sym}?", *args)
128:         end

[Source]

     # File lib/spec/expectations/should/have.rb, line 130
130:         def item_expectation
131:           "should not have"
132:         end

[Validate]