Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

activeresource tests use AS::TestCase

  • Loading branch information...
commit a2d68c1086951d831463ccedd7bf872c50be9ade 1 parent 8350ce9
@tenderlove tenderlove authored
View
2  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
View
2  activeresource/test/cases/base/custom_methods_test.rb
@@ -3,7 +3,7 @@
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
View
2  activeresource/test/cases/base/equality_test.rb
@@ -2,7 +2,7 @@
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)
View
2  activeresource/test/cases/base/load_test.rb
@@ -32,7 +32,7 @@ class Note < ActiveResource::Base
end
-class BaseLoadTest < Test::Unit::TestCase
+class BaseLoadTest < ActiveSupport::TestCase
def setup
@matz = { :id => 1, :name => 'Matz' }
View
2  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'}
View
2  activeresource/test/cases/base_test.rb
@@ -12,7 +12,7 @@
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
View
2  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)
View
2  activeresource/test/cases/finder_test.rb
@@ -6,7 +6,7 @@
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
View
2  activeresource/test/cases/format_test.rb
@@ -2,7 +2,7 @@
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' }
View
2  activeresource/test/cases/observing_test.rb
@@ -2,7 +2,7 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.