Permalink
Browse files

Test String#dasherize

  • Loading branch information...
1 parent 740d363 commit 389ae055aede8bce1721c0e7ab60c9aaec2109ee @amatsuda amatsuda committed Jan 23, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 activesupport/test/core_ext/string_ext_test.rb
@@ -87,6 +87,12 @@ def test_camelize_lower
assert_equal('capital', 'Capital'.camelize(:lower))
end
+ def test_dasherize
+ UnderscoresToDashes.each do |underscored, dasherized|
+ assert_equal(dasherized, underscored.dasherize)
+ end
+ end
+
def test_underscore
CamelToUnderscore.each do |camel, underscore|
assert_equal(underscore, camel.underscore)

0 comments on commit 389ae05

Please sign in to comment.