active_resource_simulator 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,14 +4,14 @@ module ActiveResource
4
4
 
5
5
  def initialize(model)
6
6
  @model = model
7
- @simulations = []
7
+ @@simulations = []
8
8
  end
9
9
 
10
10
  attr_reader :model, :simulations
11
11
 
12
12
 
13
13
  def simulate_request(method, path, body=nil, options={})
14
- @simulations << prepare_simulation(method, path, body, options)
14
+ @@simulations << prepare_simulation(method, path, body, options)
15
15
  load_simulations!
16
16
  end
17
17
 
@@ -72,7 +72,7 @@ module ActiveResource
72
72
 
73
73
  def load_simulations!
74
74
  ActiveResource::HttpMock.respond_to do |mock|
75
- @simulations.each do |simulation|
75
+ @@simulations.each do |simulation|
76
76
  mock.send(*simulation)
77
77
  end
78
78
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveResourceSimulator
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: active_resource_simulator
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Robert Lail
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-18 00:00:00 -05:00
13
+ date: 2011-08-26 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency