1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/deprecation/basic_object_test.rb
2012-12-15 20:57:45 +07:00

12 lines
No EOL
425 B
Ruby

require 'abstract_unit'
require 'active_support/deprecation'
require 'active_support/basic_object'
class BasicObjectTest < ActiveSupport::TestCase
test 'BasicObject warns about deprecation when inherited from' do
warn = 'ActiveSupport::BasicObject is deprecated! Use ActiveSupport::ProxyObject instead.'
ActiveSupport::Deprecation.expects(:warn).with(warn).once
Class.new(ActiveSupport::BasicObject)
end
end