Sha256: a293b93d519e72d5266a05b798b4353d0d1a5a7fc6db4553ddf70e892b15c079
Contents?: true
Size: 413 Bytes
Versions: 20
Compression:
Stored size: 413 Bytes
Contents
require 'core/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
20 entries across 20 versions & 1 rubygems