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