Sha256: f0488f264ff6ff15bac4821079e50f682dd6a7007485b24ba7601918e43fe181
Contents?: true
Size: 423 Bytes
Versions: 26
Compression:
Stored size: 423 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Loquor class ApiCall::UpdateTest < Minitest::Test def test_put_is_called_correctly klass = mock klass.stubs(new: nil) klass.stubs(path: "/foobar") id = 5 payload = {foo: 'bar'} Loquor.expects(:put).with("#{klass.path}/#{id}", payload) update = ApiCall::Update.new(klass, id, payload).execute end end end
Version data entries
26 entries across 26 versions & 1 rubygems