Sha256: 01967849241d991e16fac63b534b905a799591f07c47535b65a31629554bbb84

Contents?: true

Size: 341 Bytes

Versions: 12

Compression:

Stored size: 341 Bytes

Contents

class FactoryBot # for factory_bot compatibility spec

  def self.factories
    {}
  end

  Factory = Struct.new(:name, :build_class)

  def self.stub_factories(hash)
    factories = {}
    hash.each do |name, build_class|
      factories[name] = Factory.new(name, build_class)
    end
    FactoryBot.stub :factories => factories
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cucumber_factory-2.0.2 spec/support/factory_bot_mock.rb
cucumber_factory-2.0.1 spec/support/factory_bot_mock.rb
cucumber_factory-2.0.0 spec/support/factory_bot_mock.rb
cucumber_factory-1.15.1 spec/support/factory_bot_mock.rb
cucumber_factory-1.15.0 spec/support/factory_bot_mock.rb
cucumber_factory-1.14.2 spec/support/factory_bot_mock.rb
cucumber_factory-1.14.1 spec/support/factory_bot_mock.rb
cucumber_factory-1.14.0 spec/support/factory_bot_mock.rb
cucumber_factory-1.13.0 spec/support/factory_bot_mock.rb
cucumber_factory-1.12.0 spec/support/factory_bot_mock.rb
cucumber_factory-1.11.9 spec/support/factory_bot_mock.rb
cucumber_factory-1.11.8 spec/support/factory_bot_mock.rb