Permalink
Browse files

Fix typos in string_ext_test.rb [ci skip]

  • Loading branch information...
jonatack committed Jul 16, 2014
1 parent 5284bbb commit fc2ecbb844908b2c2daaa3f1cfcfb97b4d41044c
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/test/core_ext/string_ext_test.rb
@@ -216,14 +216,14 @@ def test_truncate
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 @@ def test_truncate_words
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 @@ def test_truncate_words_with_separator
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

0 comments on commit fc2ecbb

Please sign in to comment.