aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-11-06 23:45:39 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-11-06 23:45:39 +0000
commita7d0e0e011928a77abb8630ce61f219ec80e86f4 (patch)
treefcef5e7ad21440a02dd00e4e0215228658931530 /activesupport/test
parent5c2e9a5e482b701512ffb112197f4c3f49f832bd (diff)
downloadrails-a7d0e0e011928a77abb8630ce61f219ec80e86f4.tar.gz
rails-a7d0e0e011928a77abb8630ce61f219ec80e86f4.tar.bz2
rails-a7d0e0e011928a77abb8630ce61f219ec80e86f4.zip
Fix warning and incorrect test trigger
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/autoloading_fixtures/raises_no_method_error.rb2
-rw-r--r--activesupport/test/dependencies_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/autoloading_fixtures/raises_no_method_error.rb b/activesupport/test/autoloading_fixtures/raises_no_method_error.rb
index dd29da9b95..e1b8fce24a 100644
--- a/activesupport/test/autoloading_fixtures/raises_no_method_error.rb
+++ b/activesupport/test/autoloading_fixtures/raises_no_method_error.rb
@@ -1,3 +1,3 @@
class RaisesNoMethodError
- foobar_method_doesnt_exist
+ self.foobar_method_doesnt_exist
end
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index e4d02e49d9..04fcea2411 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -654,7 +654,7 @@ class DependenciesTest < Test::Unit::TestCase
assert !defined?(::RaisesNameError)
2.times do
begin
- ::RaisesNameError
+ ::RaisesNameError.object_id
flunk 'should have raised NameError when autoloaded file referenced FooBarBaz'
rescue NameError => e
assert_equal 'uninitialized constant RaisesNameError::FooBarBaz', e.message