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
factory_girl-4.3.0 spec/support/matchers/callback.rb
challah-1.0.0 vendor/bundle/gems/factory_girl-4.2.0/spec/support/matchers/callback.rb
classiccms-0.7.2 vendor/bundle/gems/factory_girl-3.3.0/spec/support/matchers/callback.rb
classiccms-0.7.2 vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
classiccms-0.7.2 vendor/bundle/gems/factory_girl-3.2.0/spec/support/matchers/callback.rb
classiccms-0.7.1 vendor/bundle/gems/factory_girl-3.3.0/spec/support/matchers/callback.rb
classiccms-0.7.1 vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
classiccms-0.7.1 vendor/bundle/gems/factory_girl-3.2.0/spec/support/matchers/callback.rb
classiccms-0.7.0 vendor/bundle/gems/factory_girl-3.3.0/spec/support/matchers/callback.rb
classiccms-0.7.0 vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
classiccms-0.7.0 vendor/bundle/gems/factory_girl-3.2.0/spec/support/matchers/callback.rb
challah-1.0.0.beta3 vendor/bundle/gems/factory_girl-4.2.0/spec/support/matchers/callback.rb
challah-1.0.0.beta2 vendor/bundle/gems/factory_girl-4.2.0/spec/support/matchers/callback.rb
challah-1.0.0.beta vendor/bundle/gems/factory_girl-4.1.0/spec/support/matchers/callback.rb
challah-1.0.0.beta vendor/bundle/gems/factory_girl-4.2.0/spec/support/matchers/callback.rb
challah-0.9.1.beta.3 vendor/bundle/gems/factory_girl-4.1.0/spec/support/matchers/callback.rb
factory_girl-4.2.0 spec/support/matchers/callback.rb
challah-0.9.1.beta vendor/bundle/gems/factory_girl-4.1.0/spec/support/matchers/callback.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/spec/support/matchers/callback.rb
challah-0.9.0 vendor/bundle/gems/factory_girl-4.1.0/spec/support/matchers/callback.rb