Skip to content
This repository
Browse code

Use ActiveSupport::TestCase in the journey tests

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

0 notes on commit dc8091b

Please sign in to comment.
Something went wrong with that request. Please try again.