Move `HaveReceived` matcher into `Matchers` module namespace.
Add new expect/allow syntax.
Add syntax configuration options.
Fix `any_instance` so it doesn't rely upon `should_receive`/`stub` being on every object.
Don't rely upon #null_object? being on every object.

This is based upon the logic in https://github.com/rspec/rspec-expectations/commit/5fbe94ae574b0daa10869675dfe0a675d268ec0b .

This is the last change we need to be able to use the :wrapped syntax with the :direct syntax disabled.
Normalize methods to symbols to get spec to pass on 1.8.7.
Remove obselete cucumber scenario.

With the changes for the new syntax, and the available config options,
`stub`, `should_receive` and `should_not_receive` are added to every
object initially (before RSpec::Mocks.setup) is called, but the config
can be set to remove them.
Fully qualify all constants.

On 1.9.2 I was getting failures like:

uninitialized constant BasicObject::Hash
Ensure the backtrace line is reported consistently.

MRI is different from JRuby and RBX in this regard. This should
get the travis build to pass, I hope.
Allow the new syntax to be used w/o rspec-expectations.

Here we conditionally define `expect` in a superclass module
so that it is available, but `RSpec::Matchers` can still be
included later to override it.

Note: with this in place, `expect` won't be undefined when the
new syntax is disabled.  I think that's OK, though.
Support null_object test doubles with new syntax.
Add yard docs for new methods.
Improve the way we make `expect` available when rspec-expectations is not used.

- Put it in a named rather than anonymous module.
- Allow the syntax to be toggled.
Change :direct and :wrapped for :should and :expect.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add a .feature for the new expect syntax.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Clean up expect_syntax.feature.

Review from @JonRowe.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Move the spec_helper create in expect_syntax.feature to a background.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Rename `receiver` to `object`  and tighten up feature slightly
Merge branch 'master' into new_syntax

Signed-off-by: Sam Phippen <samphippen@googlemail.com>

Conflicts:
	lib/rspec/mocks/have_received.rb
	lib/rspec/mocks/method_double.rb
align expect_message* cukes