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

Version Path
loquor-1.13.0 test/api_calls/update_test.rb
loquor-1.12.0 test/api_calls/update_test.rb
loquor-1.11.0 test/api_calls/update_test.rb
loquor-1.10.0 test/api_calls/update_test.rb
loquor-1.9.0 test/api_calls/update_test.rb
loquor-1.8.0 test/api_calls/update_test.rb
loquor-1.7.0 test/api_calls/update_test.rb
loquor-1.6.0 test/api_calls/update_test.rb
loquor-1.5.0 test/api_calls/update_test.rb
loquor-1.4.0 test/api_calls/update_test.rb
loquor-1.3.0 test/api_calls/update_test.rb
loquor-1.2.1 test/api_calls/update_test.rb
loquor-1.2.0 test/api_calls/update_test.rb
loquor-1.1.1 test/api_calls/update_test.rb
loquor-1.1.0 test/api_calls/update_test.rb
loquor-1.0.0 test/api_calls/update_test.rb
loquor-0.9.0 test/api_calls/update_test.rb
loquor-0.8.0 test/api_calls/update_test.rb
loquor-0.7.0 test/api_calls/update_test.rb
loquor-0.6.0 test/api_calls/update_test.rb