aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/test/deprecation/basic_object_test.rb
blob: 4b5bed9eb1f33c2bbacc005e44d5b7ae216fbd2f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                              
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