Sha256: 66b72c8fad1a2e4030a5c645e6bf429d130622a1cfb524ffc15f5dc991214b68
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
require 'test/unit' require 'kooaba' require 'mocha/setup' class UpdateRequestTest < Test::Unit::TestCase include Kooaba def test_disable_item req = UpdateRequest.new("123", "enabled" => false) http_resp = Net::HTTPSuccess.new(1.0, 200, "hi") http_resp.stubs(:code).returns(204) http_resp.stubs(:kind_of?).returns('Net::HTTPSuccess') http_resp.stubs(:body).returns('') req.stubs(:make_request).returns(http_resp) req.expects(:parse_2xx).with(http_resp).returns("") assert req.start end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.7 | test/test_update_request.rb |