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

Version Path
nephophobia-0.3.0 test/lib/nephophobia_test.rb
nephophobia-0.2.0 test/lib/nephophobia_test.rb
nephophobia-0.1.2 test/lib/nephophobia_test.rb
nephophobia-0.1.1 test/lib/nephophobia_test.rb
nephophobia-0.1.0 test/lib/nephophobia_test.rb
nephophobia-0.0.9 test/lib/nephophobia_test.rb
nephophobia-0.0.8 test/lib/nephophobia_test.rb
nephophobia-0.0.7 test/lib/nephophobia_test.rb
nephophobia-0.0.6 test/lib/nephophobia_test.rb
nephophobia-0.0.5 test/lib/nephophobia_test.rb
nephophobia-0.0.4 test/lib/nephophobia_test.rb
nephophobia-0.0.3 test/lib/nephophobia_test.rb
nephophobia-0.0.2 test/lib/nephophobia_test.rb
nephophobia-0.0.1 test/lib/nephophobia_test.rb