Sha256: 117175a03e718cdfcd6bd31ef9896a719916a21e992f42868cd14c16ea96de28
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
require 'spec_helper' module Alf module Operator::Relational describe Wrap do let(:operator_class){ Wrap } it_should_behave_like("An operator class") let(:input) {[ {:a => "a", :b => "b", :c => "c"}, ]} let(:expected) {[ {:wraped => {:a => "a", :b => "b"}, :c => "c"} ]} subject{ operator.to_a } describe "when factored with commandline args" do let(:operator){ Wrap.run(["--", "a", "b", "--", "wraped"]) } before{ operator.pipe(input) } it { should == expected } end describe "when factored with Lispy" do let(:operator){ Lispy.wrap(input, [:a, :b], :wraped) } it { should == expected } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.10.1 | spec/unit/operator/relational/test_wrap.rb |
alf-0.10.0 | spec/unit/operator/relational/test_wrap.rb |