spec/motion-resource/requests_spec.rb in motion-resource-0.1.3 vs spec/motion-resource/requests_spec.rb in motion-resource-0.1.4

- old
+ new

@@ -118,10 +118,11 @@ end it "should call a block given to on_auth_failure on 401" do stub_request(:get, "http://example.com/comments/10.json").to_return(status_code: 401) @fail = false - Comment.on_auth_failure { @fail = true; resume } + Comment.on_auth_failure { @fail = true } + Comment.new.get("comments/10") do |response, json| resume end wait_max 1.0 do