diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-28 17:35:17 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-28 17:35:17 -0300 |
commit | 80a98e9b258f5b335ee035edc7aa520819532075 (patch) | |
tree | d991c390cf609504a14786d913f510c254201410 /actionpack/test/controller | |
parent | 3abd0593a62e2be118b783efe55f63ab3324a4d7 (diff) | |
download | rails-80a98e9b258f5b335ee035edc7aa520819532075.tar.gz rails-80a98e9b258f5b335ee035edc7aa520819532075.tar.bz2 rails-80a98e9b258f5b335ee035edc7aa520819532075.zip |
Use instance_variable_defined? instead instance_variable_get in tests.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/action_pack_assertions_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb index a0092a9f73..d9d258e593 100644 --- a/actionpack/test/controller/action_pack_assertions_test.rb +++ b/actionpack/test/controller/action_pack_assertions_test.rb @@ -234,13 +234,13 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase def test_template_objects_exist process :assign_this - assert !@controller.instance_variable_get(:"@hi") + assert !@controller.instance_variable_defined?(:"@hi") assert @controller.instance_variable_get(:"@howdy") end def test_template_objects_missing process :nothing - assert_nil @controller.instance_variable_get(:@howdy) + assert !@controller.instance_variable_defined?(:@howdy) end def test_empty_flash |