aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-05 17:08:07 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-05 17:08:07 -0800
commita2d68c1086951d831463ccedd7bf872c50be9ade (patch)
tree2aa42300ce8e1f6e1244961cb4ad64051be463af
parent8350ce97f2065eed9638c595d3938a573d6fa343 (diff)
downloadrails-a2d68c1086951d831463ccedd7bf872c50be9ade.tar.gz
rails-a2d68c1086951d831463ccedd7bf872c50be9ade.tar.bz2
rails-a2d68c1086951d831463ccedd7bf872c50be9ade.zip
activeresource tests use AS::TestCase
-rw-r--r--activeresource/test/cases/authorization_test.rb2
-rw-r--r--activeresource/test/cases/base/custom_methods_test.rb2
-rw-r--r--activeresource/test/cases/base/equality_test.rb2
-rw-r--r--activeresource/test/cases/base/load_test.rb2
-rw-r--r--activeresource/test/cases/base_errors_test.rb2
-rw-r--r--activeresource/test/cases/base_test.rb2
-rw-r--r--activeresource/test/cases/connection_test.rb2
-rw-r--r--activeresource/test/cases/finder_test.rb2
-rw-r--r--activeresource/test/cases/format_test.rb2
-rw-r--r--activeresource/test/cases/observing_test.rb2
10 files changed, 10 insertions, 10 deletions
diff --git a/activeresource/test/cases/authorization_test.rb b/activeresource/test/cases/authorization_test.rb
index dabc40dfe7..0185e5432d 100644
--- a/activeresource/test/cases/authorization_test.rb
+++ b/activeresource/test/cases/authorization_test.rb
@@ -1,6 +1,6 @@
require 'abstract_unit'
-class AuthorizationTest < Test::Unit::TestCase
+class AuthorizationTest < ActiveSupport::TestCase
Response = Struct.new(:code)
def setup
diff --git a/activeresource/test/cases/base/custom_methods_test.rb b/activeresource/test/cases/base/custom_methods_test.rb
index 3eaa9b1c5b..f7aa7a4a09 100644
--- a/activeresource/test/cases/base/custom_methods_test.rb
+++ b/activeresource/test/cases/base/custom_methods_test.rb
@@ -3,7 +3,7 @@ require 'fixtures/person'
require 'fixtures/street_address'
require 'active_support/core_ext/hash/conversions'
-class CustomMethodsTest < Test::Unit::TestCase
+class CustomMethodsTest < ActiveSupport::TestCase
def setup
@matz = { :person => { :id => 1, :name => 'Matz' } }.to_json
@matz_deep = { :person => { :id => 1, :name => 'Matz', :other => 'other' } }.to_json
diff --git a/activeresource/test/cases/base/equality_test.rb b/activeresource/test/cases/base/equality_test.rb
index 84f1a7b998..fffd8b75c3 100644
--- a/activeresource/test/cases/base/equality_test.rb
+++ b/activeresource/test/cases/base/equality_test.rb
@@ -2,7 +2,7 @@ require 'abstract_unit'
require "fixtures/person"
require "fixtures/street_address"
-class BaseEqualityTest < Test::Unit::TestCase
+class BaseEqualityTest < ActiveSupport::TestCase
def setup
@new = Person.new
@one = Person.new(:id => 1)
diff --git a/activeresource/test/cases/base/load_test.rb b/activeresource/test/cases/base/load_test.rb
index 784e7dd036..f07e1ea16b 100644
--- a/activeresource/test/cases/base/load_test.rb
+++ b/activeresource/test/cases/base/load_test.rb
@@ -32,7 +32,7 @@ module Highrise
end
-class BaseLoadTest < Test::Unit::TestCase
+class BaseLoadTest < ActiveSupport::TestCase
def setup
@matz = { :id => 1, :name => 'Matz' }
diff --git a/activeresource/test/cases/base_errors_test.rb b/activeresource/test/cases/base_errors_test.rb
index 5063916d10..aacbeeb83c 100644
--- a/activeresource/test/cases/base_errors_test.rb
+++ b/activeresource/test/cases/base_errors_test.rb
@@ -1,7 +1,7 @@
require 'abstract_unit'
require "fixtures/person"
-class BaseErrorsTest < Test::Unit::TestCase
+class BaseErrorsTest < ActiveSupport::TestCase
def setup
ActiveResource::HttpMock.respond_to do |mock|
mock.post "/people.xml", {}, %q(<?xml version="1.0" encoding="UTF-8"?><errors><error>Age can't be blank</error><error>Name can't be blank</error><error>Name must start with a letter</error><error>Person quota full for today.</error></errors>), 422, {'Content-Type' => 'application/xml; charset=utf-8'}
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb
index 7b42f64a35..c3b963844c 100644
--- a/activeresource/test/cases/base_test.rb
+++ b/activeresource/test/cases/base_test.rb
@@ -12,7 +12,7 @@ require 'active_support/ordered_hash'
require 'active_support/core_ext/hash/conversions'
require 'mocha'
-class BaseTest < Test::Unit::TestCase
+class BaseTest < ActiveSupport::TestCase
def setup
setup_response # find me in abstract_unit
@original_person_site = Person.site
diff --git a/activeresource/test/cases/connection_test.rb b/activeresource/test/cases/connection_test.rb
index 535107aeef..653912f000 100644
--- a/activeresource/test/cases/connection_test.rb
+++ b/activeresource/test/cases/connection_test.rb
@@ -1,6 +1,6 @@
require 'abstract_unit'
-class ConnectionTest < Test::Unit::TestCase
+class ConnectionTest < ActiveSupport::TestCase
ResponseCodeStub = Struct.new(:code)
RedirectResponseStub = Struct.new(:code, :Location)
diff --git a/activeresource/test/cases/finder_test.rb b/activeresource/test/cases/finder_test.rb
index 5fbbfeef6e..3e8550d356 100644
--- a/activeresource/test/cases/finder_test.rb
+++ b/activeresource/test/cases/finder_test.rb
@@ -6,7 +6,7 @@ require "fixtures/beast"
require "fixtures/proxy"
require 'active_support/core_ext/hash/conversions'
-class FinderTest < Test::Unit::TestCase
+class FinderTest < ActiveSupport::TestCase
def setup
setup_response # find me in abstract_unit
end
diff --git a/activeresource/test/cases/format_test.rb b/activeresource/test/cases/format_test.rb
index 174142ec52..21fdc24832 100644
--- a/activeresource/test/cases/format_test.rb
+++ b/activeresource/test/cases/format_test.rb
@@ -2,7 +2,7 @@ require 'abstract_unit'
require "fixtures/person"
require "fixtures/street_address"
-class FormatTest < Test::Unit::TestCase
+class FormatTest < ActiveSupport::TestCase
def setup
@matz = { :id => 1, :name => 'Matz' }
@david = { :id => 2, :name => 'David' }
diff --git a/activeresource/test/cases/observing_test.rb b/activeresource/test/cases/observing_test.rb
index 58d3d389ff..b2371a1bdf 100644
--- a/activeresource/test/cases/observing_test.rb
+++ b/activeresource/test/cases/observing_test.rb
@@ -2,7 +2,7 @@ require 'abstract_unit'
require 'fixtures/person'
require 'active_support/core_ext/hash/conversions'
-class ObservingTest < Test::Unit::TestCase
+class ObservingTest < ActiveSupport::TestCase
cattr_accessor :history
class PersonObserver < ActiveModel::Observer