Sha256: c40dc75422855825d4651bea81acef4dabdaecbb7434aa1633ff1738738c9fd6
Contents?: true
Size: 695 Bytes
Versions: 5
Compression:
Stored size: 695 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Rank do let(:input){ [] } subject{ Rank.run(argv) } before do subject.should be_a(Alf::Operator::Relational::Rank) subject.operands.should eq([input]) end context "without name" do let(:argv){ [input, "--", "time"] } specify{ subject.order.should eq(Alf::Ordering[[:time, :asc]]) subject.as.should eq(:rank) } end context "with explicit name" do let(:argv){ [input, "--","time", "desc", "--", "newname"] } specify{ subject.order.should eq(Alf::Ordering[[:time, :desc]]) subject.as.should eq(:newname) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems