Sha256: 308304e8295a50000182d2a06143d1068772d96ed7635a1930bc6e1ecb9a1e37

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

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

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

    before do
      subject.should be_a(Alf::Operator::Relational::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

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 spec/unit/alf-shell/operator/test_rename.rb
alf-0.12.1 spec/unit/alf-shell/operator/test_rename.rb
alf-0.12.0 spec/unit/alf-shell/operator/test_rename.rb
alf-0.11.1 spec/unit/alf-shell/operator/test_rename.rb
alf-0.11.0 spec/unit/alf-shell/operator/test_rename.rb