Files

RSpec::Mocks

Attributes

space[RW]

Public Class Methods

setup(host) click to toggle source
# File lib/rspec/mocks.rb, line 10
def setup(host)
  add_extensions unless extensions_added?
  (class << host; self; end).class_eval do
    include RSpec::Mocks::ExampleMethods
  end
  self.space ||= RSpec::Mocks::Space.new
end
teardown() click to toggle source
# File lib/rspec/mocks.rb, line 22
def teardown
  space.reset_all
end
verify() click to toggle source
# File lib/rspec/mocks.rb, line 18
def verify
  space.verify_all
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.