mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
12 lines
No EOL
425 B
Ruby
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 |