Sha256: da3ebd199342d100ab419fe20784ac4cac8ebc99b8bf36875ca6c8b6783b3c80
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
require 'helper' describe Recurator do let :recur do Recurator.new({ "one" => { "two" => { "three" => 3 } } }) end it "initialize" do Recurator.new({}) end it "include Enumerable" do Recurator.include?(Enumerable) end it "each" do ret = [] recur.each {|o| ret << o } expect(ret).to eq([["one",{"two"=>{"three"=>3}}], ["two",{"three"=>3}], ["three",3]]) end it "keys" do expect(recur.keys).to eq(["one","two","three"]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recurator-0.0.1 | spec/recurator_spec.rb |