Sha256: 7eccaa19e12559c8c9aafc9d6ec44c98a1595702ecfec5cae2803e8e44f7a5dc
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require "spec_helper" require "hamster/tuple" describe Hamster::Tuple do describe "#to_a" do [ [], ["A"], %w[A B C], ].each do |values| describe "on #{values.inspect}" do before do @tuple = Hamster::Tuple.new(*values) @result = @tuple.to_a end it "returns #{values.inspect}" do @result.should == values end it "returns a mutable array" do expect(@result.last).to_not eq("The End") @result << "The End" @result.last.should == "The End" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-1.0.1.pre.rc.1 | spec/hamster/tuple/to_a_spec.rb |