Sha256: b55b2dc1ea5b71c1b5e487377e3acaf38c9ea4433da159cc47c3e64a0f088c90
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'hamster/list' describe Hamster::List do [:empty?, :null?].each do |method| describe "##{method}" do [ [[], true], [["A"], false], [["A", "B", "C"], false], ].each do |values, expected| describe "on #{values.inspect}" do before do @list = Hamster.list(*values) end it "returns #{expected.inspect}" do @list.send(method).should == expected end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.19 | spec/hamster/list/empty_spec.rb |
hamster-0.1.18 | spec/hamster/list/empty_spec.rb |
hamster-0.1.17 | spec/hamster/list/empty_spec.rb |