Sha256: e1086ff1af4cb1dae59d882b606fe1668470e77f7de60e7ac90f889867cbcb0a
Contents?: true
Size: 488 Bytes
Versions: 28
Compression:
Stored size: 488 Bytes
Contents
require 'test_helper' module Spyke class CallbacksTest < MiniTest::Test def setup stub_request(:any, /.*/) end def test_before_save Recipe.any_instance.expects(:before_save_callback) Recipe.create end def test_before_create Recipe.any_instance.expects(:before_create_callback) Recipe.create end def test_before_update Recipe.any_instance.expects(:before_update_callback) Recipe.new(id: 1).save end end end
Version data entries
28 entries across 28 versions & 1 rubygems