Sha256: d7e2a7675a382914a7e79fb2a46e4a51b22958032140ca55f206e10319a7ba15

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

module TestSource
  def self.source(name, &block)
    source = Smoke::Origin.allocate
    source.stub!(:dispatch)
    source.send(:initialize, name, &block || Proc.new {})
    source.items = [
      {:head => "Platypus"},
      {:head => "Kangaroo"}
    ]
    return source
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
benschwarz-smoke-0.2.3 spec/supports/test_source.rb