Sha256: 4b7417a51d9f45c1584e72f75afbde2b3108aa8b6e99975a58abd68c370c3e25
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
class UtilTest < Minitest::Test def test_snake_casing assert_equal "foo/bar", Orchestra::Util.to_snake_case("Foo::Bar") assert_equal "foo_bar", Orchestra::Util.to_snake_case("FOOBar") end def test_recursive_symbolizing expected_hsh = { foo: [{ bar: { baz: 'qux' }, },{ ping: ['pong'], }], } actual_hsh = Orchestra::Util.recursively_symbolize JSON.load JSON.dump expected_hsh assert_equal expected_hsh, actual_hsh end end
Version data entries
5 entries across 5 versions & 1 rubygems