require 'rspec/mocks'

World(RSpec::Mocks::ExampleMethods)

Before do
  if RSpec::Mocks::Version::STRING.split('.').first.to_i > 2
    RSpec::Mocks::setup
  else
    RSpec::Mocks::setup(self)
  end
end

After do
  begin
    RSpec::Mocks::verify
  ensure
    RSpec::Mocks::teardown
  end
end

require 'rspec/mocks'

World(RSpec::Mocks::ExampleMethods)

Before do
  if RSpec::Mocks::Version::STRING.split('.').first.to_i > 2
    RSpec::Mocks.setup
  else
    RSpec::Mocks.setup(self)
  end
end

After do
  begin
    RSpec::Mocks.verify
  ensure
    RSpec::Mocks.teardown
  end
end

Change :: to . for method calls.
Change :: to . for method calls.

I did this because it is clearer in terms of identifying them as method calls
and not classes.
