class MR::TestHelpers::ModelNotDestroyedAssertion

Public Instance Methods

run(context) click to toggle source
# File lib/mr/test_helpers.rb, line 181
def run(context)
  context.assert_false(@destroyed){ destroyed_desc }
end

Private Instance Methods

destroyed_desc() click to toggle source
# File lib/mr/test_helpers.rb, line 187
def destroyed_desc
  "Expected #{@model.inspect} was not destroyed."
end