Sha256: 9efb825ab970af82accd0e5ccc137a0932a8f1ab71adf5e822d48f68e7dbfff3
Contents?: true
Size: 710 Bytes
Versions: 5
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' describe Ethon::Easy::Callbacks do let!(:easy) { Ethon::Easy.new } describe "#set_callbacks" do before do Ethon::Curl.should_receive(:set_option).exactly(3).times end it "sets write- and headerfunction" do easy.set_callbacks end it "resets @response_body" do easy.set_callbacks expect(easy.instance_variable_get(:@response_body)).to eq("") end it "resets @response_headers" do easy.set_callbacks expect(easy.instance_variable_get(:@response_headers)).to eq("") end it "resets @debug_info" do easy.set_callbacks expect(easy.instance_variable_get(:@debug_info).to_a).to eq([]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems