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