Sha256: c1254b795d09552ffb2b2595362d96dae84a6272708b5f463be67c998b7bce97

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'
module Alf::Shell::Operator
  describe Rename do

    let(:input){ suppliers }
    subject{ Rename.run(argv) }

    before do
      subject.should be_a(Alf::Algebra::Rename)
      subject.operands.should eq([input])
    end

    context "a typical config" do
      let(:argv){ [input, '--', 'a', 'z'] }
      specify{
        subject.renaming.should eq(Alf::Renaming[:a => :z])
      }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alf-shell-0.14.0 spec/unit/operator/test_rename.rb
alf-shell-0.13.1 spec/unit/operator/test_rename.rb
alf-shell-0.13.0 spec/unit/operator/test_rename.rb