public
Description: Conditional checks on Rails filters
Clone URL: git://github.com/thoughtbot/when.git
made the string change to constants

git-svn-id: https://svn.thoughtbot.com/plugins/when/trunk@355 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
dcroak (author)
Mon Feb 18 22:14:25 -0800 2008
commit  ec9acc9dc58d2621052beb4cfa02550cd751328d
tree    b55ef3faafa2f1d2d53925e2ed8b92711e1c123d
parent  bdf498d8987f665fb0104364558bec7cfe02558e
...
422
423
424
425
 
426
427
428
...
422
423
424
 
425
426
427
428
0
@@ -422,7 +422,7 @@ class CallbacksTest < Test::Unit::TestCase
0
 
0
   def teardown
0
     Object.class_eval do
0
- remove_const Company.to_s if const_defined? Company.to_s
0
+ remove_const "Company" if const_defined? "Company"
0
     end
0
   end
0
   
...
370
371
372
373
 
374
375
376
...
370
371
372
 
373
374
375
376
0
@@ -370,7 +370,7 @@ class FiltersTest < ActionController::TestCase
0
 
0
   def teardown
0
     Object.class_eval do
0
- remove_const CompaniesController.to_s if const_defined? CompaniesController.to_s
0
+ remove_const "CompaniesController" if const_defined? "CompaniesController"
0
     end
0
   end
0
 
...
275
276
277
278
 
279
280
281
...
275
276
277
 
278
279
280
281
0
@@ -275,7 +275,7 @@ class ValidationsTest < Test::Unit::TestCase
0
 
0
   def teardown
0
     Object.class_eval do
0
- remove_const Company.to_s if const_defined? Company.to_s
0
+ remove_const "Company" if const_defined? "Company"
0
     end
0
   end
0
 

Comments

    No one has commented yet.