Sha256: afa4903d5fb7eb49d00b2127c129fd0d246d6e7fd0dc6b4fd605c592b9b147fa
Contents?: true
Size: 720 Bytes
Versions: 6
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' module Alf module Operator::Relational describe Rename do let(:operator_class){ Rename } it_should_behave_like("An operator class") let(:input) {[ {:a => "a", :b => "b"}, ]} let(:expected){[ {:z => "a", :b => "b"}, ]} subject{ operator.to_a } describe "When factored with Lispy" do let(:operator){ Lispy.rename(input, {:a => :z}) } it{ should == expected } end describe "When factored from commandline args" do let(:operator){ Rename.run(['--', 'a', 'z']) } before{ operator.pipe(input) } it{ should == expected } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems