Module: ActiveResourceSimulator

Defined in:
lib/active_resource_simulator.rb,
lib/active_resource_simulator/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#run_simulation {|ActiveResource::Simulator.new(self)| ... } ⇒ Object

Yields:



7
8
9
10
# File 'lib/active_resource_simulator.rb', line 7

def run_simulation
  yield ActiveResource::Simulator.new(self)
  ActiveResource::HttpMock.reset!
end