Sha256: 255bcc7630e414ea04f8d7a733f0d61eebda2940cdbcb06e0fa29ff44181a23c

Contents?: true

Size: 228 Bytes

Versions: 255

Compression:

Stored size: 228 Bytes

Contents

RSpec::Matchers.define :have_callback do |callback_name|
  match do |instance|
    instance.callbacks.include?(FactoryGirl::Callback.new(callback_name, @block))
  end

  chain :with_block do |block|
    @block = block
  end
end

Version data entries

255 entries across 133 versions & 11 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/factory_girl-4.5.0/spec/support/matchers/callback.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.3.0/spec/support/matchers/callback.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.2.0/spec/support/matchers/callback.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.2.0/spec/support/matchers/callback.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.3.0/spec/support/matchers/callback.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.3.0/spec/support/matchers/callback.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.2.0/spec/support/matchers/callback.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/factory_girl-4.5.0/spec/support/matchers/callback.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/factory_girl-4.5.0/spec/support/matchers/callback.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/factory_girl-4.5.0/spec/support/matchers/callback.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/factory_girl-2.6.4/spec/support/matchers/callback.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/factory_girl-4.4.0/spec/support/matchers/callback.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/factory_girl-4.4.0/spec/support/matchers/callback.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/factory_girl-4.4.0/spec/support/matchers/callback.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/factory_girl-4.4.0/spec/support/matchers/callback.rb
factory_girl-4.5.0 spec/support/matchers/callback.rb
factory_girl-4.4.0 spec/support/matchers/callback.rb