Sha256: 6d48f23393ad73b6cc1d564aa1703c16e95abe4f59895b4d61b811b6db0ee1f5

Contents?: true

Size: 421 Bytes

Versions: 30

Compression:

Stored size: 421 Bytes

Contents

module MockDefinition

  class << self
    def create(queue=nil)

      definition = Module.new do
        extend Taskinator::Definition

        define_process :foo_hash do
          # empty on purpose
        end
      end

      definition.queue = queue

      # create a constant, so that the mock definition isn't anonymous
      Object.const_set("Mock#{SecureRandom.hex}Definition", definition)

    end
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
taskinator-0.5.2 spec/support/mock_definition.rb
taskinator-0.5.1 spec/support/mock_definition.rb
taskinator-0.5.0 spec/support/mock_definition.rb
taskinator-0.4.7 spec/support/mock_definition.rb
taskinator-0.4.6 spec/support/mock_definition.rb
taskinator-0.4.5 spec/support/mock_definition.rb
taskinator-0.4.4 spec/support/mock_definition.rb
taskinator-0.4.3 spec/support/mock_definition.rb
taskinator-0.4.2 spec/support/mock_definition.rb
taskinator-0.4.1 spec/support/mock_definition.rb
taskinator-0.4.0 spec/support/mock_definition.rb
taskinator-0.3.16 spec/support/mock_definition.rb
taskinator-0.3.15 spec/support/mock_definition.rb
taskinator-0.3.14 spec/support/mock_definition.rb
taskinator-0.3.13 spec/support/mock_definition.rb
taskinator-0.3.12 spec/support/mock_definition.rb
taskinator-0.3.11 spec/support/mock_definition.rb
taskinator-0.3.10 spec/support/mock_definition.rb
taskinator-0.3.9 spec/support/mock_definition.rb
taskinator-0.3.7 spec/support/mock_definition.rb