|
83 | 83 | end |
84 | 84 |
|
85 | 85 | it "should run a GET request" do |
86 | | - @rest.should_receive(:run_request).with(:GET, @rest.create_url, false, 10, false) |
| 86 | + @rest.should_receive(:run_request).with(:GET, @rest.create_url, {}, false, 10, false) |
87 | 87 | @provider.action_get |
88 | 88 | end |
89 | 89 |
|
|
117 | 117 | end |
118 | 118 |
|
119 | 119 | it "should run a PUT request with the message as the payload" do |
120 | | - @rest.should_receive(:run_request).with(:PUT, @rest.create_url, @new_resource.message, 10, false) |
| 120 | + @rest.should_receive(:run_request).with(:PUT, @rest.create_url, {}, @new_resource.message, 10, false) |
121 | 121 | @provider.action_put |
122 | 122 | end |
123 | 123 |
|
124 | 124 | it "should inflate a message block at runtime" do |
125 | 125 | @new_resource.stub!(:message).and_return(lambda { "return" }) |
126 | | - @rest.should_receive(:run_request).with(:PUT, @rest.create_url, "return", 10, false) |
| 126 | + @rest.should_receive(:run_request).with(:PUT, @rest.create_url, {}, "return", 10, false) |
127 | 127 | @provider.action_put |
128 | 128 | end |
129 | 129 |
|
|
157 | 157 | end |
158 | 158 |
|
159 | 159 | it "should run a PUT request with the message as the payload" do |
160 | | - @rest.should_receive(:run_request).with(:POST, @rest.create_url, @new_resource.message, 10, false) |
| 160 | + @rest.should_receive(:run_request).with(:POST, @rest.create_url, {}, @new_resource.message, 10, false) |
161 | 161 | @provider.action_post |
162 | 162 | end |
163 | 163 |
|
164 | 164 | it "should inflate a message block at runtime" do |
165 | 165 | @new_resource.stub!(:message).and_return(lambda { "return" }) |
166 | | - @rest.should_receive(:run_request).with(:POST, @rest.create_url, "return", 10, false) |
| 166 | + @rest.should_receive(:run_request).with(:POST, @rest.create_url, {}, "return", 10, false) |
167 | 167 | @provider.action_post |
168 | 168 | end |
169 | 169 |
|
|
197 | 197 | end |
198 | 198 |
|
199 | 199 | it "should run a DELETE request" do |
200 | | - @rest.should_receive(:run_request).with(:DELETE, @rest.create_url, false, 10, false) |
| 200 | + @rest.should_receive(:run_request).with(:DELETE, @rest.create_url, {}, false, 10, false) |
201 | 201 | @provider.action_delete |
202 | 202 | end |
203 | 203 |
|
|
0 commit comments