diff options
author | Jon Atack <jon@atack.com> | 2014-07-16 22:02:36 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2014-07-16 22:02:36 +0200 |
commit | fc2ecbb844908b2c2daaa3f1cfcfb97b4d41044c (patch) | |
tree | b635f5b54f457512eec642e31956aa6898669976 /activesupport/test | |
parent | 5284bbbe1e4c46d226202b71015d3ab8539751f3 (diff) | |
download | rails-fc2ecbb844908b2c2daaa3f1cfcfb97b4d41044c.tar.gz rails-fc2ecbb844908b2c2daaa3f1cfcfb97b4d41044c.tar.bz2 rails-fc2ecbb844908b2c2daaa3f1cfcfb97b4d41044c.zip |
Fix typos in string_ext_test.rb [ci skip]
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index 2ece20d379..f74b1c8078 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -216,14 +216,14 @@ class StringInflectionsTest < ActiveSupport::TestCase assert_equal "Hello Wor...", "Hello World!!".truncate(12) end - def test_truncate_with_omission_and_seperator + def test_truncate_with_omission_and_separator assert_equal "Hello[...]", "Hello World!".truncate(10, :omission => "[...]") assert_equal "Hello[...]", "Hello Big World!".truncate(13, :omission => "[...]", :separator => ' ') assert_equal "Hello Big[...]", "Hello Big World!".truncate(14, :omission => "[...]", :separator => ' ') assert_equal "Hello Big[...]", "Hello Big World!".truncate(15, :omission => "[...]", :separator => ' ') end - def test_truncate_with_omission_and_regexp_seperator + def test_truncate_with_omission_and_regexp_separator assert_equal "Hello[...]", "Hello Big World!".truncate(13, :omission => "[...]", :separator => /\s/) assert_equal "Hello Big[...]", "Hello Big World!".truncate(14, :omission => "[...]", :separator => /\s/) assert_equal "Hello Big[...]", "Hello Big World!".truncate(15, :omission => "[...]", :separator => /\s/) @@ -234,7 +234,7 @@ class StringInflectionsTest < ActiveSupport::TestCase assert_equal "Hello Big...", "Hello Big World!".truncate_words(2) end - def test_truncate_words_with_ommission + def test_truncate_words_with_omission assert_equal "Hello Big World!", "Hello Big World!".truncate_words(3, :omission => "[...]") assert_equal "Hello Big[...]", "Hello Big World!".truncate_words(2, :omission => "[...]") end @@ -245,7 +245,7 @@ class StringInflectionsTest < ActiveSupport::TestCase assert_equal "Hello\n<br>Big...", "Hello\n<br>Big<br>Wide<br>World!".truncate_words(2, :separator => '<br>') end - def test_truncate_words_with_separator_and_ommission + def test_truncate_words_with_separator_and_omission assert_equal "Hello<br>Big<br>World![...]", "Hello<br>Big<br>World!<br>".truncate_words(3, :omission => "[...]", :separator => '<br>') assert_equal "Hello<br>Big<br>World!", "Hello<br>Big<br>World!".truncate_words(3, :omission => "[...]", :separator => '<br>') end |