# File lib/rails/dom/testing/assertions/tag_assertions.rb, line 121 def assert_no_tag(*opts) ActiveSupport::Deprecation.warn("assert_no_tag is deprecated and will be removed at Rails 5. Use assert_select to get the same feature.") opts = opts.size > 1 ? opts.last.merge({ tag: opts.first.to_s }) : opts.first tag = _find_tag(opts) assert !tag, "expected no tag, but found tag matching #{opts.inspect} in:\n#{@response.body.inspect}" end