Skip to content

Commit c32709f

Browse files
author
Janusz Mordarski
committed
Make tests running with ActiveRecord 4.1
1 parent 614b844 commit c32709f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/tc_basic.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# -----------------------------------------------------------------------------
3434
;
3535

36-
require 'test/unit'
36+
require 'minitest/autorun'
3737
require 'rgeo/active_record/adapter_test_helper'
3838

3939

@@ -42,10 +42,10 @@ module ActiveRecord # :nodoc:
4242
module Mysql2SpatialAdapter # :nodoc:
4343
module Tests # :nodoc:
4444

45-
class TestBasic < ::Test::Unit::TestCase # :nodoc:
45+
class TestBasic < ::Minitest::Test # :nodoc:
4646

4747
DATABASE_CONFIG_PATH = ::File.dirname(__FILE__)+'/database.yml'
48-
include AdapterTestHelper
48+
include RGeo::ActiveRecord::AdapterTestHelper
4949

5050
define_test_methods do
5151

@@ -63,7 +63,7 @@ def populate_ar_class(content_)
6363

6464

6565
def test_version
66-
assert_not_nil(::ActiveRecord::ConnectionAdapters::Mysql2SpatialAdapter::VERSION)
66+
refute_nil(::ActiveRecord::ConnectionAdapters::Mysql2SpatialAdapter::VERSION)
6767
end
6868

6969

test/tc_spatial_queries.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# -----------------------------------------------------------------------------
3434
;
3535

36-
require 'test/unit'
36+
require 'minitest/autorun'
3737
require 'rgeo/active_record/adapter_test_helper'
3838

3939

@@ -42,10 +42,10 @@ module ActiveRecord # :nodoc:
4242
module Mysql2SpatialAdapter # :nodoc:
4343
module Tests # :nodoc:
4444

45-
class TestSpatialQueries < ::Test::Unit::TestCase # :nodoc:
45+
class TestSpatialQueries < ::Minitest::Test # :nodoc:
4646

4747
DATABASE_CONFIG_PATH = ::File.dirname(__FILE__)+'/database.yml'
48-
include AdapterTestHelper
48+
include RGeo::ActiveRecord::AdapterTestHelper
4949

5050
define_test_methods do
5151

0 commit comments

Comments
 (0)