method

assert_not_deprecated

rails latest stable - Class: ActiveSupport::Deprecation::Assertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

assert_not_deprecated(&block)
public

No documentation available.

# File activesupport/lib/active_support/deprecation.rb, line 128
      def assert_not_deprecated(&block)
        result, deprecations = collect_deprecations(&block)
        assert deprecations.empty?, "Expected no deprecation warning within the block but received #{deprecations.size}: \n  #{deprecations * "\n  "}"
        result
      end