Sha256: 0b82ff379d0d55962b11c08df3a71242a85c6780bca832ce4c869a4a1bc3d710
Contents?: true
Size: 327 Bytes
Versions: 16
Compression:
Stored size: 327 Bytes
Contents
# frozen_string_literal: true RSpec::Matchers.define :have_been_destroyed do match do |actual| !actual.class.where(id: actual.id).exists? end description do 'model should have been destroyed' end failure_message do |actual| "expected #{actual.class}(id: #{actual.id}) to have been destroyed" end end
Version data entries
16 entries across 16 versions & 2 rubygems