Sha256: 5fc42556de48dcd3a8dc88766c4adbf8449b44900b58c970069a879f1a59ca02
Contents?: true
Size: 514 Bytes
Versions: 6
Compression:
Stored size: 514 Bytes
Contents
require 'test_helper' module Sublease class TenantTest < ActiveSupport::TestCase setup do @tenant = ::Tenant.first end context 'overridden Class method delete' do should 'call destroy' do Tenant.stub :destroy, true do assert(Tenant.delete(1)) end end end context 'overridden Instance method delete' do should 'call destroy' do @tenant.stub :destroy, true do assert(@tenant.delete) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems