Sha256: d3b567233131bd670d21fdadf3f89fa1eee6691bead0c23de30d34080ff830c5
Contents?: true
Size: 327 Bytes
Versions: 14
Compression:
Stored size: 327 Bytes
Contents
require "test_helper" describe Nephophobia do describe "::coerce" do it "wraps a Hash with an Array" do hash = { :foo => :bar } Nephophobia.coerce(hash).must_equal [hash] end it "doesn't wrap others" do array = [:foo, :bar] Nephophobia.coerce(array).must_equal array end end end
Version data entries
14 entries across 14 versions & 1 rubygems