Sha256: 54a29321b3a4d6827d6f8cffe9a5641a77801215a4fe838f91c014aaad5fbe0f
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require "spec_helper" require "hamster/core_ext/enumerable" describe Enumerable do class TestEnumerable include Enumerable def initialize(*values) @values = values end def each(&block) @values.each(&block) end end let(:enumerable) { TestEnumerable.new("A", "B", "C") } describe "#to_list" do let(:to_list) { enumerable.to_list } it "returns an equivalent list" do expect(to_list).to eq(Hamster.list("A", "B", "C")) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-1.0.1.pre.rc.1 | spec/hamster/core_ext/enumerable_spec.rb |