Sha256: 9d334de5bc3cf0d9ad749e3d7f57fa0d456c53dd99d4e7deec6caec96dedeb55
Contents?: true
Size: 363 Bytes
Versions: 3
Compression:
Stored size: 363 Bytes
Contents
# frozen_string_literal: true require "test_helper" class UnderscoreTest < Minitest::Test test "replaces capital letters by underscores" do assert_equal "some_constant_name", Aitch::Utils.underscore("SomeConstantName") end test "considers URI acronym" do assert_equal "request_uri_too_long", Aitch::Utils.underscore("RequestURITooLong") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aitch-1.0.2 | test/aitch/utils/underscore_test.rb |
aitch-1.0.1 | test/aitch/utils/underscore_test.rb |
aitch-1.0.0 | test/aitch/utils/underscore_test.rb |