{"action":"created","issue":{"url":"https://api.github.com/repos/typhoeus/typhoeus/issues/460","labels_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/460/labels{/name}","comments_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/460/comments","events_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/460/events","html_url":"https://github.com/typhoeus/typhoeus/issues/460","id":89401866,"number":460,"title":"undefined method `mock=' while stubbing sequentially","user":{"login":"Silox","id":915130,"avatar_url":"https://avatars.githubusercontent.com/u/915130?v=3","gravatar_id":"","url":"https://api.github.com/users/Silox","html_url":"https://github.com/Silox","followers_url":"https://api.github.com/users/Silox/followers","following_url":"https://api.github.com/users/Silox/following{/other_user}","gists_url":"https://api.github.com/users/Silox/gists{/gist_id}","starred_url":"https://api.github.com/users/Silox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silox/subscriptions","organizations_url":"https://api.github.com/users/Silox/orgs","repos_url":"https://api.github.com/users/Silox/repos","events_url":"https://api.github.com/users/Silox/events{/privacy}","received_events_url":"https://api.github.com/users/Silox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-18T21:26:15Z","updated_at":"2015-06-18T21:43:19Z","closed_at":"2015-06-18T21:41:00Z","body":"Following the documentation for stubbing sequential responses, I get an `undefined method `mock=' for #<Array:0x007fe3cd604650>`. The following code reproduces the error:\r\n\r\n```\r\nirb(main):001:0> require 'typhoeus'\r\n=> true\r\nirb(main):002:0> response1 = Typhoeus::Response.new(code: 200, body: \"{'name' : 'paul'}\")\r\n=> #<Typhoeus::Response:0x007fa0a3801380 @options={:code=>200, :body=>\"{'name' : 'paul'}\"}>\r\nirb(main):003:0> response2 = Typhoeus::Response.new(code: 200, body: \"{'name' : 'brad'}\")\r\n=> #<Typhoeus::Response:0x007fa0a0be23a8 @options={:code=>200, :body=>\"{'name' : 'brad'}\"}>\r\nirb(main):004:0> Typhoeus.stub('www.example.com').and_return([response1, response2])\r\n=> [[#<Typhoeus::Response:0x007fa0a3801380 @options={:code=>200, :body=>\"{'name' : 'paul'}\"}>, #<Typhoeus::Response:0x007fa0a0be23a8 @options={:code=>200, :body=>\"{'name' : 'brad'}\"}>]]\r\nirb(main):005:0> Typhoeus.get('www.example.com') == response1\r\nNoMethodError: undefined method `mock=' for #<Array:0x007fa0a1e30668>\r\n        from /Users/silox/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/typhoeus-0.7.1/lib/typhoeus/expectation.rb:185:in `response'\r\n        from /Users/silox/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/typhoeus-0.7.1/lib/typhoeus/expectation.rb:89:in `response_for'\r\n        from /Users/silox/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/typhoeus-0.7.1/lib/typhoeus/request/stubbable.rb:20:in `run'\r\n        from /Users/silox/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/typhoeus-0.7.1/lib/typhoeus/request/before.rb:26:in `run'\r\n        from /Users/silox/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/typhoeus-0.7.1/lib/typhoeus/request/actions.rb:22:in `get'\r\n        from (irb):5\r\n        from /Users/silox/.rbenv/versions/2.2.0/bin/irb:11:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/typhoeus/typhoeus/issues/comments/113297829","html_url":"https://github.com/typhoeus/typhoeus/issues/460#issuecomment-113297829","issue_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/460","id":113297829,"user":{"login":"i0rek","id":38218,"avatar_url":"https://avatars.githubusercontent.com/u/38218?v=3","gravatar_id":"","url":"https://api.github.com/users/i0rek","html_url":"https://github.com/i0rek","followers_url":"https://api.github.com/users/i0rek/followers","following_url":"https://api.github.com/users/i0rek/following{/other_user}","gists_url":"https://api.github.com/users/i0rek/gists{/gist_id}","starred_url":"https://api.github.com/users/i0rek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i0rek/subscriptions","organizations_url":"https://api.github.com/users/i0rek/orgs","repos_url":"https://api.github.com/users/i0rek/repos","events_url":"https://api.github.com/users/i0rek/events{/privacy}","received_events_url":"https://api.github.com/users/i0rek/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T21:43:19Z","updated_at":"2015-06-18T21:43:19Z","body":"No worries, I am glad it works."}}