lib/rspec/expectations/syntax.rb in rspec-expectations-2.13.0 vs lib/rspec/expectations/syntax.rb in rspec-expectations-2.14.0.rc1
- old
+ new
@@ -30,13 +30,13 @@
# @method expect
# Supports `expect(actual).to matcher` syntax by wrapping `actual` in an
# `ExpectationTarget`.
# @example
# expect(actual).to eq(expected)
- # expect(actual).to_not eq(expected)
+ # expect(actual).not_to eq(expected)
# @return [ExpectationTarget]
# @see ExpectationTarget#to
- # @see ExpectationTarget#to_not
+ # @see ExpectationTarget#not_to
# @api private
# Determines where we add `should` and `should_not`.
def default_should_host
@default_should_host ||= ::Object.ancestors.last