Sha256: 3cf061bc6e1a521f32c134415d8f0a0076a5b5bb4ef25edf85371fbd4a315034
Contents?: true
Size: 408 Bytes
Versions: 12
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper' describe ZendeskAPI::Middleware::Response::Callback do let(:response) { "TEST" } before(:each) do client.insert_callback do |env| env[:body] = response end stub_request(:get, %r{test_endpoint}).to_return(:body => JSON.dump({ "ABC" => "DEF" })) end it "should call callbacks " do client.connection.get("test_endpoint").body.should == response end end
Version data entries
12 entries across 12 versions & 1 rubygems