diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-25 11:18:48 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-25 11:18:48 -0800 |
commit | 73c53cd9ebd32e1e18ff7bc0b3cfe87cfb29b40a (patch) | |
tree | dd140a168fd180d3cfc63f0d914faf7e2e5f1786 /actionpack/test/controller | |
parent | e2edfe188c7e466412f9af3b24b37a03e519ca77 (diff) | |
parent | bedb66eb04a57e4f61974639c861bdb250fe96ef (diff) | |
download | rails-73c53cd9ebd32e1e18ff7bc0b3cfe87cfb29b40a.tar.gz rails-73c53cd9ebd32e1e18ff7bc0b3cfe87cfb29b40a.tar.bz2 rails-73c53cd9ebd32e1e18ff7bc0b3cfe87cfb29b40a.zip |
Merge pull request #4529 from ask4prasath/refactor
Refactored class methods on address render test
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/addresses_render_test.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/actionpack/test/controller/addresses_render_test.rb b/actionpack/test/controller/addresses_render_test.rb index 0b5f2d7679..07f27fd362 100644 --- a/actionpack/test/controller/addresses_render_test.rb +++ b/actionpack/test/controller/addresses_render_test.rb @@ -3,16 +3,18 @@ require 'active_support/logger' require 'controller/fake_controllers' class Address - def Address.count(conditions = nil, join = nil) - nil - end + class << self + def count(conditions = nil, join = nil) + nil + end - def Address.find_all(arg1, arg2, arg3, arg4) - [] - end + def find_all(arg1, arg2, arg3, arg4) + [] + end - def self.find(*args) - [] + def find(*args) + [] + end end end |