Sha256: 59a93771ab6ecb1489ab2f15a50fbfc3cae3c8ac13a15c543576c1905938ae07
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
require_relative "expectation" require_relative "step" module Linepipe module DSL def setup(&block) @setup = block end def data(data=nil, &block) @data = data ? -> { data } : block end def step(name=nil, &block) @steps << step = Step.new(name, &block) step end def expect(msg=nil, &block) @expectations << Expectation.new(msg, method(:log), &block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linepipe-0.2.0 | lib/linepipe/dsl.rb |