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/dom_assertions'
|
||||||
require File.dirname(__FILE__) + '/assertions/routing_assertions'
|
require File.dirname(__FILE__) + '/assertions/routing_assertions'
|
||||||
require File.dirname(__FILE__) + '/assertions/model_assertions'
|
require File.dirname(__FILE__) + '/assertions/model_assertions'
|
||||||
|
require File.dirname(__FILE__) + '/assertions/deprecated_assertions'
|
||||||
|
|
||||||
module Test #:nodoc:
|
module Test #:nodoc:
|
||||||
module Unit #:nodoc:
|
module Unit #:nodoc:
|
||||||
|
@ -63,6 +64,7 @@ module Test #:nodoc:
|
||||||
include ActionController::Assertions::TagAssertions
|
include ActionController::Assertions::TagAssertions
|
||||||
include ActionController::Assertions::DomAssertions
|
include ActionController::Assertions::DomAssertions
|
||||||
include ActionController::Assertions::ModelAssertions
|
include ActionController::Assertions::ModelAssertions
|
||||||
|
include ActionController::Assertions::DeprecatedAssertions
|
||||||
|
|
||||||
def clean_backtrace(&block)
|
def clean_backtrace(&block)
|
||||||
yield
|
yield
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/assertions'
|
|
||||||
require 'rexml/document'
|
require 'rexml/document'
|
||||||
|
|
||||||
module Test #:nodoc:
|
module ActionController #:nodoc:
|
||||||
module Unit #:nodoc:
|
module Assertions #:nodoc:
|
||||||
module Assertions
|
module DeprecatedAssertions
|
||||||
def assert_success(message=nil) #:nodoc:
|
def assert_success(message=nil) #:nodoc:
|
||||||
assert_response(:success, message)
|
assert_response(:success, message)
|
||||||
end
|
end
|
|
@ -1,6 +1,3 @@
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/assertions'
|
|
||||||
|
|
||||||
module ActionController
|
module ActionController
|
||||||
module Assertions
|
module Assertions
|
||||||
module DomAssertions
|
module DomAssertions
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/assertions'
|
|
||||||
|
|
||||||
module ActionController
|
module ActionController
|
||||||
module Assertions
|
module Assertions
|
||||||
module ModelAssertions
|
module ModelAssertions
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/assertions'
|
|
||||||
require 'rexml/document'
|
require 'rexml/document'
|
||||||
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/assertions'
|
|
||||||
|
|
||||||
module ActionController
|
module ActionController
|
||||||
module Assertions
|
module Assertions
|
||||||
module RoutingAssertions
|
module RoutingAssertions
|
||||||
|
|
|
@ -3,12 +3,9 @@
|
||||||
# Under MIT and/or CC By license.
|
# Under MIT and/or CC By license.
|
||||||
#++
|
#++
|
||||||
|
|
||||||
require 'test/unit'
|
|
||||||
require 'test/unit/assertions'
|
|
||||||
require 'rexml/document'
|
require 'rexml/document'
|
||||||
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
||||||
|
|
||||||
|
|
||||||
module ActionController
|
module ActionController
|
||||||
module Assertions
|
module Assertions
|
||||||
# Adds the #assert_select method for use in Rails functional
|
# 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 'rexml/document'
|
||||||
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
require File.dirname(__FILE__) + "/../vendor/html-scanner/html/document"
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
begin
|
require File.dirname(__FILE__) + '/assertions'
|
||||||
require File.dirname(__FILE__) + '/assertions'
|
|
||||||
require File.dirname(__FILE__) + '/deprecated_assertions'
|
|
||||||
rescue Exception => e
|
|
||||||
print e
|
|
||||||
end
|
|
||||||
|
|
||||||
module ActionController #:nodoc:
|
module ActionController #:nodoc:
|
||||||
class Base
|
class Base
|
||||||
|
|
Loading…
Reference in a new issue