Sha256: 4b6fa2affd3cff934fb7aa74f04bd7595c617655ed1813617f0bc0168daeda51

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

require File.expand_path('../../../test_helper', __FILE__)

class DasherizedKeyFormatterTest < ActiveSupport::TestCase
  def test_dasherize_camelize
    formatted = DasherizedKeyFormatter.format("CarWash")
    assert_equal formatted, "car-wash"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsonapi-resources-0.7.1.beta1 test/unit/formatters/dasherized_key_formatter_test.rb
jsonapi-resources-0.7.0 test/unit/formatters/dasherized_key_formatter_test.rb
jsonapi-resources-0.6.2 test/unit/formatters/dasherized_key_formatter_test.rb