mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Moved in deprecated assertions and remove duplicated requires
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
a4bef314fe
commit
d52b4a6645
9 changed files with 6 additions and 27 deletions
|
@ -53,6 +53,7 @@ require File.dirname(__FILE__) + '/assertions/tag_assertions'
|
|||
require File.dirname(__FILE__) + '/assertions/dom_assertions'
|
||||
require File.dirname(__FILE__) + '/assertions/routing_assertions'
|
||||
require File.dirname(__FILE__) + '/assertions/model_assertions'
|
||||
require File.dirname(__FILE__) + '/assertions/deprecated_assertions'
|
||||
|
||||
module Test #:nodoc:
|
||||
module Unit #:nodoc:
|
||||
|
@ -63,6 +64,7 @@ module Test #:nodoc:
|
|||
include ActionController::Assertions::TagAssertions
|
||||
include ActionController::Assertions::DomAssertions
|
||||
include ActionController::Assertions::ModelAssertions
|
||||
include ActionController::Assertions::DeprecatedAssertions
|
||||
|
||||
def clean_backtrace(&block)
|
||||
yield
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
require 'rexml/document'
|
||||
|
||||
module Test #:nodoc:
|
||||
module Unit #:nodoc:
|
||||
module Assertions
|
||||
module ActionController #:nodoc:
|
||||
module Assertions #:nodoc:
|
||||
module DeprecatedAssertions
|
||||
def assert_success(message=nil) #:nodoc:
|
||||
assert_response(:success, message)
|
||||
end
|
|
@ -1,6 +1,3 @@
|
|||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
|
||||
module ActionController
|
||||
module Assertions
|
||||
module DomAssertions
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
|
||||
module ActionController
|
||||
module Assertions
|
||||
module ModelAssertions
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
require 'rexml/document'
|
||||
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
|
||||
module ActionController
|
||||
module Assertions
|
||||
module RoutingAssertions
|
||||
|
|
|
@ -3,12 +3,9 @@
|
|||
# Under MIT and/or CC By license.
|
||||
#++
|
||||
|
||||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
require 'rexml/document'
|
||||
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
||||
|
||||
|
||||
module ActionController
|
||||
module Assertions
|
||||
# Adds the #assert_select method for use in Rails functional
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'test/unit'
|
||||
require 'test/unit/assertions'
|
||||
require 'rexml/document'
|
||||
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
||||
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
begin
|
||||
require File.dirname(__FILE__) + '/assertions'
|
||||
require File.dirname(__FILE__) + '/deprecated_assertions'
|
||||
rescue Exception => e
|
||||
print e
|
||||
end
|
||||
require File.dirname(__FILE__) + '/assertions'
|
||||
|
||||
module ActionController #:nodoc:
|
||||
class Base
|
||||
|
|
Loading…
Reference in a new issue