Sha256: e480fc5655284c5d5b2e2395dafbdca61b0197b03d50e25ebe493b9edc08b6b8
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Summarize do let(:input){ suppliers } subject{ Summarize.run(argv) } before do subject.should be_a(Alf::Algebra::Summarize) subject.operands.should eq([input]) subject.by.should eq(Alf::AttrList[:a]) subject.summarization.should eq(Alf::Summarization[:time_sum => "sum{ time }"]) end context "--no-allbut" do let(:argv){ [input] + ["--", "a", "--", "time_sum", "sum{ time }"] } specify{ subject.allbut.should eq(false) } end context "--allbut" do let(:argv){ [input] + ["--allbut", "--", "a", "--", "time_sum", "sum{ time }"] } specify{ subject.allbut.should eq(true) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.14.0 | spec/unit/operator/test_summarize.rb |
alf-shell-0.13.1 | spec/unit/operator/test_summarize.rb |
alf-shell-0.13.0 | spec/unit/operator/test_summarize.rb |