Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use ActiveSupport::TestCase in the journey tests

  • Loading branch information...
commit dc8091b88f66d58e9bd5e60a2f2dc250f45810f5 1 parent 9c18b6a
@rafaelfranca rafaelfranca authored
View
2  actionpack/test/journey/gtg/builder_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module GTG
- class TestBuilder < MiniTest::Unit::TestCase
+ class TestBuilder < ActiveSupport::TestCase
def test_following_states_multi
table = tt ['a|a']
assert_equal 1, table.move([0], 'a').length
View
2  actionpack/test/journey/gtg/transition_table_test.rb
@@ -4,7 +4,7 @@
module ActionDispatch
module Journey
module GTG
- class TestGeneralizedTable < MiniTest::Unit::TestCase
+ class TestGeneralizedTable < ActiveSupport::TestCase
def test_to_json
table = tt %w{
/articles(.:format)
View
2  actionpack/test/journey/nfa/simulator_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module NFA
- class TestSimulator < MiniTest::Unit::TestCase
+ class TestSimulator < ActiveSupport::TestCase
def test_simulate_simple
sim = simulator_for ['/foo']
assert_match sim, '/foo'
View
2  actionpack/test/journey/nfa/transition_table_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module NFA
- class TestTransitionTable < MiniTest::Unit::TestCase
+ class TestTransitionTable < ActiveSupport::TestCase
def setup
@parser = Journey::Parser.new
end
View
2  actionpack/test/journey/nodes/symbol_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module Nodes
- class TestSymbol < MiniTest::Unit::TestCase
+ class TestSymbol < ActiveSupport::TestCase
def test_default_regexp?
sym = Symbol.new nil
assert sym.default_regexp?
View
2  actionpack/test/journey/path/pattern_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module Path
- class TestPattern < MiniTest::Unit::TestCase
+ class TestPattern < ActiveSupport::TestCase
x = /.+/
{
'/:controller(/:action)' => %r{\A/(#{x})(?:/([^/.?]+))?\Z},
View
2  actionpack/test/journey/route/definition/parser_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module Definition
- class TestParser < MiniTest::Unit::TestCase
+ class TestParser < ActiveSupport::TestCase
def setup
@parser = Parser.new
end
View
2  actionpack/test/journey/route/definition/scanner_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
module Definition
- class TestScanner < MiniTest::Unit::TestCase
+ class TestScanner < ActiveSupport::TestCase
def setup
@scanner = Scanner.new
end
View
2  actionpack/test/journey/route_test.rb
@@ -2,7 +2,7 @@
module ActionDispatch
module Journey
- class TestRoute < MiniTest::Unit::TestCase
+ class TestRoute < ActiveSupport::TestCase
def test_initialize
app = Object.new
path = Path::Pattern.new '/:controller(/:action(/:id(.:format)))'
View
2  actionpack/test/journey/router/strexp_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
class Router
- class TestStrexp < MiniTest::Unit::TestCase
+ class TestStrexp < ActiveSupport::TestCase
def test_many_names
exp = Strexp.new(
"/:controller(/:action(/:id(.:format)))",
View
2  actionpack/test/journey/router/utils_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
class Router
- class TestUtils < MiniTest::Unit::TestCase
+ class TestUtils < ActiveSupport::TestCase
def test_path_escape
assert_equal "a/b%20c+d", Utils.escape_path("a/b c+d")
end
View
2  actionpack/test/journey/router_test.rb
@@ -3,7 +3,7 @@
module ActionDispatch
module Journey
- class TestRouter < MiniTest::Unit::TestCase
+ class TestRouter < ActiveSupport::TestCase
attr_reader :routes
def setup
View
2  actionpack/test/journey/routes_test.rb
@@ -2,7 +2,7 @@
module ActionDispatch
module Journey
- class TestRoutes < MiniTest::Unit::TestCase
+ class TestRoutes < ActiveSupport::TestCase
def test_clear
routes = Routes.new
exp = Router::Strexp.new '/foo(/:id)', {}, ['/.?']
Please sign in to comment.
Something went wrong with that request. Please try again.