Sha256: f03957fd4132b1c9b840b3a3348c38b2e98d2671410e51aacd08470eb75a11fe
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 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.new(name, &block) end def expect(msg=nil, &block) @expectations << Expectation.new(msg, io, &block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linepipe-0.1.1 | lib/linepipe/dsl.rb |
linepipe-0.1.0 | lib/linepipe/dsl.rb |