Sha256: 1ced997c3e9cbc0ef1a12f0ce770d51e21a124a28443efe0b84e2de66ebdd4f4
Contents?: true
Size: 753 Bytes
Versions: 5
Compression:
Stored size: 753 Bytes
Contents
require 'spec_helper' module Alf module Operator::Relational describe Unwrap do let(:operator_class){ Unwrap } it_should_behave_like("An operator class") let(:input) {[ {:wrapped => {:a => "a", :b => "b"}, :c => "c"} ]} let(:expected) {[ {:a => "a", :b => "b", :c => "c"}, ]} subject{ operator.to_a } describe "when factored with commandline args" do let(:operator){ Unwrap.run(%w{-- wrapped}) } before{ operator.pipe(input) } it { should == expected } end describe "when factored with Lispy" do let(:operator){ Lispy.unwrap(input, :wrapped) } it { should == expected } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems