diff options
Diffstat (limited to 'test/cli_test.rb')
-rw-r--r-- | test/cli_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cli_test.rb b/test/cli_test.rb index 4dc1eb3..6c43e2c 100644 --- a/test/cli_test.rb +++ b/test/cli_test.rb @@ -17,4 +17,12 @@ class CliTest < Dashing::Test end end + def test_hyphenate + assert_equal 'power', Dashing::CLI.hyphenate('Power') + assert_equal 'power', Dashing::CLI.hyphenate('POWER') + assert_equal 'power-rangers', Dashing::CLI.hyphenate('PowerRangers') + assert_equal 'power-ranger', Dashing::CLI.hyphenate('Power_ranger') + assert_equal 'super-power-rangers', Dashing::CLI.hyphenate('SuperPowerRangers') + end + end
\ No newline at end of file |