aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/CHANGELOG2
-rw-r--r--activesupport/test/inflector_test.rb3
2 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG
index aab84054cc..fcb79ca344 100644
--- a/activesupport/CHANGELOG
+++ b/activesupport/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* A couple extra tests for #classify. Closes #7273. [Josh Susser]
+
* Better docs for Object extensions [zackchandler, Jamis Buck]
* Fix that Dates couldn't be subtracted from Dates after [5940]. [Sam Stephenson]
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb
index f8a665c1ed..7dace1a7a9 100644
--- a/activesupport/test/inflector_test.rb
+++ b/activesupport/test/inflector_test.rb
@@ -275,12 +275,13 @@ class InflectorTest < Test::Unit::TestCase
def test_classify
ClassNameToTableName.each do |class_name, table_name|
assert_equal(class_name, Inflector.classify(table_name))
+ assert_equal(class_name, Inflector.classify("table_prefix." + table_name))
end
end
def test_classify_with_symbol
assert_nothing_raised do
- assert_equal 'FooBar', Inflector.classify(:foo_bar)
+ assert_equal 'FooBar', Inflector.classify(:foo_bars)
end
end