Sha256: c6fe2f2e318271c0ded6288ec45bc14cd3ede5a18f352dde26f5b51d785703be

Contents?: true

Size: 545 Bytes

Versions: 33

Compression:

Stored size: 545 Bytes

Contents

require 'test_helper'

module Spyke
  class CallbacksTest < MiniTest::Test
    def setup
      stub_request(:any, /.*/)
    end

    def test_before_create
      Recipe.any_instance.expects(:before_create_callback)
      Recipe.create
    end

    def test_before_save
      Recipe.any_instance.expects(:before_save_callback)
      Recipe.create
    end

    def test_before_update
      Recipe.any_instance.expects(:before_save_callback)
      Recipe.any_instance.expects(:before_update_callback)
      Recipe.new(id: 1).save
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spyke-7.1.1 test/callbacks_test.rb
spyke-7.1.0 test/callbacks_test.rb
spyke-7.0.0 test/callbacks_test.rb
spyke-6.1.3 test/callbacks_test.rb
spyke-6.1.2 test/callbacks_test.rb
spyke-6.1.1 test/callbacks_test.rb
spyke-6.1.0 test/callbacks_test.rb
spyke-6.0.0 test/callbacks_test.rb
spyke-5.4.3 test/callbacks_test.rb
spyke-5.4.2 test/callbacks_test.rb
spyke-5.4.1 test/callbacks_test.rb
spyke-5.4.0 test/callbacks_test.rb
spyke-5.3.4 test/callbacks_test.rb
spyke-5.3.3 test/callbacks_test.rb
spyke-5.3.2 test/callbacks_test.rb
spyke-5.3.1 test/callbacks_test.rb
spyke-5.3.0 test/callbacks_test.rb
spyke-5.2.0 test/callbacks_test.rb
spyke-5.1.0 test/callbacks_test.rb
spyke-5.0.0 test/callbacks_test.rb