Sha256: f056e2b37d25796f242572bff1732852dec6876d4bd54bf08cc321a35d5c0b9c

Contents?: true

Size: 443 Bytes

Versions: 9

Compression:

Stored size: 443 Bytes

Contents

# Factories for setting up attribute hashes
module Kookaburra
  class TestData
    class Factory
      attr_reader :test_data
      def initialize(test_data)
        @test_data = test_data
      end

      protected
      def hash_for_merging(overrides = {})
        HashWithIndifferentAccess.new( overrides.with_indifferent_access ).tap do |hash_to_merge|
          yield hash_to_merge if block_given?
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kookaburra-0.4.0 lib/kookaburra/test_data/factory.rb
kookaburra-0.3.1 lib/kookaburra/test_data/factory.rb
kookaburra-0.3.0 lib/kookaburra/test_data/factory.rb
kookaburra-0.2.0 lib/kookaburra/test_data/factory.rb
kookaburra-0.1.1 lib/kookaburra/test_data/factory.rb
kookaburra-0.1.0 lib/kookaburra/test_data/factory.rb
kookaburra-0.0.4 lib/kookaburra/test_data/factory.rb
kookaburra-0.0.3 lib/kookaburra/test_data/factory.rb
kookaburra-0.0.2 lib/kookaburra/test_data/factory.rb