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

Version Path
spyke-1.8.11 test/callbacks_test.rb
spyke-1.8.10 test/callbacks_test.rb
spyke-1.8.9 test/callbacks_test.rb
spyke-1.8.8 test/callbacks_test.rb
spyke-1.8.7 test/callbacks_test.rb
spyke-1.8.6 test/callbacks_test.rb
spyke-1.8.5 test/callbacks_test.rb
spyke-1.8.4 test/callbacks_test.rb
spyke-1.8.3 test/callbacks_test.rb
spyke-1.8.2 test/callbacks_test.rb
spyke-1.8.1 test/callbacks_test.rb
spyke-1.8.0 test/callbacks_test.rb
spyke-1.7.2 test/callbacks_test.rb
spyke-1.7.1 test/callbacks_test.rb
spyke-1.7.0 test/callbacks_test.rb
spyke-1.6.0 test/callbacks_test.rb
spyke-1.5.0 test/callbacks_test.rb
spyke-1.4.1 test/callbacks_test.rb
spyke-1.4.0 test/callbacks_test.rb
spyke-1.3.0 test/callbacks_test.rb