Sha256: 1675fff8c5d96c2e21ab8cb7edd9967375500e8ae09c3eee7ab42aa2214d3491
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
module Fix class Spec attr_reader :examples def initialize *syms, &block @examples = Set.new const = syms.inject(Object) do |base, const| base.const_get(const) end @constant = Constant.new const, @examples @constant.instance_exec &block if block end def run @examples.map {|example| example.value } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fix-0.0.1.pre | lib/fix/spec.rb |