Sha256: e91a2b72be0357f2c23919597a51e85c60032ccfe04aac65d5cddc0f7aea43ef
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Hamster::List do describe "#head" do [ [[], nil], [["A"], "A"], [["A", "B", "C"], "A"], ].each do |values, expected| describe "on #{values.inspect}" do before do @list = Hamster.list(*values) end it "returns #{expected}" do @list.head.should == expected end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.14 | spec/hamster/list/head_spec.rb |