Module: DataMapper::Spec::Helpers

Defined in:
lib/dm-core/spec/lib/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#reset_raise_on_save_failure(object) ⇒ Object


5
6
7
8
9
10
11
# File 'lib/dm-core/spec/lib/spec_helper.rb', line 5

def reset_raise_on_save_failure(object)
  object.instance_eval do
    if defined?(@raise_on_save_failure)
      remove_instance_variable(:@raise_on_save_failure)
    end
  end
end