Sha256: 06b9c5091729d123237a4b49f1d96f2699ab25921584668a1e57e0ceef9e7f24
Contents?: true
Size: 486 Bytes
Versions: 3
Compression:
Stored size: 486 Bytes
Contents
require 'spec_helper' module Alf::Shell::Operator describe Coerce do let(:input){ suppliers } subject{ Coerce.run(argv) } before do subject.should be_a(Alf::Algebra::Coerce) subject.operands.should eq([input]) end context "a typical coercion" do let(:argv){ [input] + %w{-- a Integer b Float} } specify{ expected = Alf::Heading[:a => Integer, :b => Float] subject.coercions.should eq(expected) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.14.0 | spec/unit/operator/test_coerce.rb |
alf-shell-0.13.1 | spec/unit/operator/test_coerce.rb |
alf-shell-0.13.0 | spec/unit/operator/test_coerce.rb |