Sha256: da63af00fc525f1597669f97d6872133c36e0579768a77a300be4ea998093f86

Contents?: true

Size: 375 Bytes

Versions: 8

Compression:

Stored size: 375 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)

module Loquor
  class ApiCall::DestroyTest < Minitest::Test
    def test_delete_is_called_correctly
      klass = mock
      klass.stubs(new: nil)
      klass.stubs(path: "/foobar")
      id = 5
      Loquor.expects(:delete).with("#{klass.path}/#{id}")
      ApiCall::Destroy.new(klass, id).execute
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
loquor-1.13.0 test/api_calls/destroy_test.rb
loquor-1.12.0 test/api_calls/destroy_test.rb
loquor-1.11.0 test/api_calls/destroy_test.rb
loquor-1.10.0 test/api_calls/destroy_test.rb
loquor-1.9.0 test/api_calls/destroy_test.rb
loquor-1.8.0 test/api_calls/destroy_test.rb
loquor-1.7.0 test/api_calls/destroy_test.rb
loquor-1.6.0 test/api_calls/destroy_test.rb