minitest-rails 1.0.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -10
  3. data/CHANGELOG.rdoc +0 -24
  4. data/Gemfile +1 -1
  5. data/LICENSE +1 -1
  6. data/Manifest.txt +31 -31
  7. data/README.rdoc +15 -17
  8. data/Rakefile +5 -6
  9. data/gemfiles/{4.0.gemfile → 4.1.gemfile} +2 -1
  10. data/lib/generators/minitest/controller/controller_generator.rb +20 -0
  11. data/lib/generators/{mini_test → minitest}/controller/templates/controller_spec.rb +0 -0
  12. data/lib/generators/{mini_test → minitest}/controller/templates/controller_test.rb +0 -0
  13. data/lib/generators/minitest/generator/generator_generator.rb +32 -0
  14. data/lib/generators/minitest/generator/templates/generator_spec.rb +14 -0
  15. data/lib/generators/minitest/generator/templates/generator_test.rb +15 -0
  16. data/lib/generators/minitest/helper/helper_generator.rb +19 -0
  17. data/lib/generators/{mini_test → minitest}/helper/templates/helper_spec.rb +0 -2
  18. data/lib/generators/{mini_test → minitest}/helper/templates/helper_test.rb +0 -0
  19. data/lib/generators/{mini_test → minitest}/install/install_generator.rb +2 -2
  20. data/lib/generators/{mini_test → minitest}/install/templates/test_helper.rb +0 -0
  21. data/lib/generators/minitest/integration/integration_generator.rb +19 -0
  22. data/lib/generators/{mini_test → minitest}/integration/templates/integration_spec.rb +0 -0
  23. data/lib/generators/{mini_test → minitest}/integration/templates/integration_test.rb +0 -0
  24. data/lib/generators/minitest/mailer/mailer_generator.rb +27 -0
  25. data/lib/generators/{mini_test → minitest}/mailer/templates/mailer_spec.rb +0 -0
  26. data/lib/generators/{mini_test → minitest}/mailer/templates/mailer_test.rb +0 -0
  27. data/lib/generators/minitest/mailer/templates/preview.rb +13 -0
  28. data/lib/generators/minitest/model/model_generator.rb +42 -0
  29. data/lib/generators/{mini_test → minitest}/model/templates/fixtures.yml +0 -0
  30. data/lib/generators/{mini_test → minitest}/model/templates/model_spec.rb +0 -0
  31. data/lib/generators/{mini_test → minitest}/model/templates/model_test.rb +0 -0
  32. data/lib/generators/{mini_test → minitest}/route/route_generator.rb +4 -4
  33. data/lib/generators/{mini_test → minitest}/route/templates/route_spec.rb +1 -1
  34. data/lib/generators/{mini_test → minitest}/route/templates/route_test.rb +1 -1
  35. data/lib/generators/minitest/scaffold/scaffold_generator.rb +38 -0
  36. data/lib/generators/{mini_test → minitest}/scaffold/templates/controller_spec.rb +4 -4
  37. data/lib/generators/{mini_test → minitest}/scaffold/templates/controller_test.rb +4 -4
  38. data/lib/generators/minitest.rb +14 -0
  39. data/lib/minitest/rails/assertions.rb +54 -270
  40. data/lib/minitest/rails/constant_lookup.rb +1 -1
  41. data/lib/minitest/rails/expectations.rb +2 -90
  42. data/lib/minitest/rails/railtie.rb +4 -4
  43. data/lib/minitest/rails/tasks/minitest.rake +20 -20
  44. data/lib/minitest/rails/tasks/sub_test_task.rb +1 -1
  45. data/lib/minitest/rails/testing.rb +2 -2
  46. data/lib/minitest/rails/version.rb +2 -2
  47. data/lib/minitest/rails.rb +38 -14
  48. data/minitest-rails.gemspec +13 -16
  49. data/tasks/test.rake +4 -31
  50. data/test/generators/test_controller_generator.rb +6 -6
  51. data/test/generators/test_generator_generator.rb +58 -0
  52. data/test/generators/test_helper_generator.rb +5 -5
  53. data/test/generators/test_install_generator.rb +3 -3
  54. data/test/generators/test_mailer_generator.rb +5 -5
  55. data/test/generators/test_model_generator.rb +9 -9
  56. data/test/generators/test_route_generator.rb +3 -3
  57. data/test/generators/test_scaffold_generator.rb +3 -3
  58. data/test/helper.rb +4 -1
  59. data/test/rails/action_controller/test_spec_type.rb +19 -14
  60. data/test/rails/action_dispatch/test_spec_type.rb +32 -29
  61. data/test/rails/action_mailer/test_spec_type.rb +19 -14
  62. data/test/rails/action_view/test_spec_type.rb +24 -18
  63. data/test/rails/active_support/test_assertions.rb +0 -28
  64. data/test/rails/active_support/test_expectations.rb +0 -28
  65. data/test/rails/active_support/test_spec_type.rb +9 -5
  66. data/test/rails/generators/test_spec_type.rb +13 -14
  67. data/test/test_sanity.rb +2 -2
  68. metadata +48 -61
  69. data/gemfiles/3.0.gemfile +0 -5
  70. data/gemfiles/3.1.gemfile +0 -5
  71. data/gemfiles/3.2.gemfile +0 -5
  72. data/gemfiles/minitest_tu_shim.rb +0 -4
  73. data/lib/generators/mini_test/controller/controller_generator.rb +0 -19
  74. data/lib/generators/mini_test/helper/helper_generator.rb +0 -17
  75. data/lib/generators/mini_test/integration/integration_generator.rb +0 -17
  76. data/lib/generators/mini_test/mailer/mailer_generator.rb +0 -19
  77. data/lib/generators/mini_test/model/model_generator.rb +0 -28
  78. data/lib/generators/mini_test/scaffold/scaffold_generator.rb +0 -42
  79. data/lib/generators/mini_test.rb +0 -42
  80. data/lib/minitest/rails/generators.rb +0 -18
@@ -1,76 +1,4 @@
1
1
  class ActiveSupport::TestCase
2
- ##
3
- # Checks if an expression is blank. Passes if actual.blank? is true.
4
- #
5
- # === This assertion is deprecated.
6
- #
7
- # Use the following to check for <tt>blank?</tt> instead:
8
- #
9
- # assert actual.blank?
10
- #
11
- # The deprecated assertion can be called like this:
12
- #
13
- # assert_blank []
14
- #
15
- # See also MiniTest::Rails::Expectations#must_be_blank
16
- #
17
- # :method: assert_blank
18
- # :call-seq: assert_blank(actual, message = nil)
19
-
20
- ##
21
- # Checks if an expression is not present. Passes if actual.present? is false.
22
- #
23
- # === This assertion is deprecated.
24
- #
25
- # Use the following to check for <tt>present?</tt> instead:
26
- #
27
- # refute actual.present?
28
- #
29
- # The deprecated assertion can be called like this:
30
- #
31
- # refute_present nil
32
- #
33
- # See also MiniTest::Rails::Expectations#wont_be_present
34
- #
35
- # :args: actual, message = nil
36
- alias :refute_present :assert_blank
37
-
38
- ##
39
- # Checks if an expression is present. Passes if actual.present? is true.
40
- #
41
- # === This assertion is deprecated.
42
- #
43
- # Use the following to check for <tt>present?</tt> instead:
44
- #
45
- # assert actual.present?
46
- #
47
- # The deprecated assertion can be called like this:
48
- #
49
- # assert_present Object.new
50
- #
51
- # See also MiniTest::Rails::Expectations#must_be_present
52
- #
53
- # :method: assert_present
54
- # :call-seq: assert_present(actual, message = nil)
55
-
56
- ##
57
- # Checks if an expression is not blank. Passes if actual.blank? is false.
58
- #
59
- # === This assertion is deprecated.
60
- #
61
- # Use the following to check for <tt>blank?</tt> instead:
62
- #
63
- # refute actual.blank?
64
- #
65
- # The deprecated assertion can be called like this:
66
- #
67
- # refute_blank [1,2,3]
68
- #
69
- # See also MiniTest::Rails::Expectations#wont_be_blank
70
- #
71
- # :args: actual, message = nil
72
- alias :refute_blank :assert_present
73
-
74
2
  ##
75
3
  # Checks the numeric difference between the return value of an expression as a result of what is evaluated.
76
4
  #
@@ -78,7 +6,7 @@ class ActiveSupport::TestCase
78
6
  # User.create
79
7
  # end
80
8
  #
81
- # See also MiniTest::Rails::Expectations#must_change
9
+ # See also Minitest::Rails::Expectations#must_change
82
10
  #
83
11
  # :method: assert_difference
84
12
  # :call-seq: assert_difference(expression, difference = 1, message = nil, &block)
@@ -90,7 +18,7 @@ class ActiveSupport::TestCase
90
18
  # User.new
91
19
  # end
92
20
  #
93
- # See also MiniTest::Rails::Expectations#wont_change
21
+ # See also Minitest::Rails::Expectations#wont_change
94
22
  #
95
23
  # :method: assert_no_difference
96
24
  # :call-seq: assert_no_difference(expression, message = nil, &block)
@@ -102,7 +30,7 @@ class ActiveSupport::TestCase
102
30
  # User.new
103
31
  # end
104
32
  #
105
- # See also MiniTest::Rails::Expectations#wont_change
33
+ # See also Minitest::Rails::Expectations#wont_change
106
34
  #
107
35
  # :args: expression, message = nil, &block
108
36
  alias :refute_difference :assert_no_difference
@@ -127,7 +55,7 @@ class ActionController::TestCase
127
55
  # # assert that the response code was status code 401 (unauthorized)
128
56
  # assert_response 401
129
57
  #
130
- # See also MiniTest::Rails::Expectations#must_respond_with
58
+ # See also Minitest::Rails::Expectations#must_respond_with
131
59
  #
132
60
  # :method: assert_response
133
61
  # :call-seq: assert_response(type, message = nil)
@@ -149,7 +77,7 @@ class ActionController::TestCase
149
77
  # # asserts that the redirection matches the regular expression
150
78
  # assert_redirected_to %r(\Ahttp://example.org)
151
79
  #
152
- # See also MiniTest::Rails::Expectations#must_redirect_to
80
+ # See also Minitest::Rails::Expectations#must_redirect_to
153
81
  #
154
82
  # :method: assert_redirected_to
155
83
  # :call-seq: assert_redirected_to(options = {}, message=nil)
@@ -184,7 +112,7 @@ class ActionController::TestCase
184
112
  # # assert that the "_customer" partial was rendered with a specific object
185
113
  # assert_template partial: '_customer', locals: { customer: @customer }
186
114
  #
187
- # See also MiniTest::Rails::Expectations#must_render_template
115
+ # See also Minitest::Rails::Expectations#must_render_template
188
116
  #
189
117
  # :method: assert_template
190
118
  # :call-seq: assert_template(options = {}, message = nil)
@@ -208,7 +136,7 @@ class ActionController::TestCase
208
136
  # # Asserts that the generated route gives us our custom route
209
137
  # assert_generates "changesets/12", { controller: 'scm', action: 'show_diff', revision: "12" }
210
138
  #
211
- # See also MiniTest::Rails::Expectations#must_route_to
139
+ # See also Minitest::Rails::Expectations#must_route_to
212
140
  #
213
141
  # :method: assert_generates
214
142
  # :call-seq: assert_generates(expected_path, options, defaults={}, extras = {}, message=nil)
@@ -245,7 +173,7 @@ class ActionController::TestCase
245
173
  # # Test a custom route
246
174
  # assert_recognizes({controller: 'items', action: 'show', id: '1'}, 'view/item1')
247
175
  #
248
- # See also MiniTest::Rails::Expectations#must_route_from
176
+ # See also Minitest::Rails::Expectations#must_route_from
249
177
  #
250
178
  # :method: assert_recognizes
251
179
  # :call-seq: assert_recognizes(expected_options, path, extras={}, msg=nil)
@@ -273,7 +201,7 @@ class ActionController::TestCase
273
201
  # # Tests a route with a HTTP method
274
202
  # assert_routing({ method: 'put', path: '/product/321' }, { controller: "product", action: "update", id: "321" })
275
203
  #
276
- # See also MiniTest::Rails::Expectations#must_route
204
+ # See also Minitest::Rails::Expectations#must_route
277
205
  #
278
206
  # :method: assert_routing
279
207
  # :call-seq: assert_routing(path, options, defaults={}, extras={}, message=nil)
@@ -366,7 +294,7 @@ class ActionController::TestCase
366
294
  # assert_select "[name=?]", /.+/ # Not empty
367
295
  # end
368
296
  #
369
- # See also MiniTest::Rails::Expectations#must_select
297
+ # See also Minitest::Rails::Expectations#must_select
370
298
  #
371
299
  # :method: assert_select
372
300
  # :call-seq: assert_select(*args, &block)
@@ -387,7 +315,7 @@ class ActionController::TestCase
387
315
  # end
388
316
  # end
389
317
  #
390
- # See also MiniTest::Rails::Expectations#must_select_email
318
+ # See also Minitest::Rails::Expectations#must_select_email
391
319
  #
392
320
  # :method: assert_select_email
393
321
  # :call-seq: assert_select_email(&block)
@@ -425,7 +353,7 @@ class ActionController::TestCase
425
353
  # end
426
354
  # end
427
355
  #
428
- # See also MiniTest::Rails::Expectations#must_select_encoded
356
+ # See also Minitest::Rails::Expectations#must_select_encoded
429
357
  #
430
358
  # :method: assert_select_encoded
431
359
  # :call-seq: assert_select_encoded(element = nil, &block)
@@ -436,7 +364,7 @@ class ActionController::TestCase
436
364
  # assert_dom_equal '<a href="http://www.example.com">Apples</a>',
437
365
  # link_to("Apples", "http://www.example.com")
438
366
  #
439
- # See also MiniTest::Rails::Expectations#must_dom_equal
367
+ # See also Minitest::Rails::Expectations#must_dom_equal
440
368
  #
441
369
  # :method: assert_dom_equal
442
370
  # :call-seq: assert_dom_equal(expected, actual, message = nil)
@@ -447,7 +375,7 @@ class ActionController::TestCase
447
375
  # assert_dom_not_equal '<a href="http://www.example.com">Oranges</a>',
448
376
  # link_to("Apples", "http://www.example.com")
449
377
  #
450
- # See also MiniTest::Rails::Expectations#wont_dom_equal
378
+ # See also Minitest::Rails::Expectations#wont_dom_equal
451
379
  #
452
380
  # :method: assert_dom_not_equal
453
381
  # :call-seq: assert_dom_not_equal(expected, actual, message = nil)
@@ -458,7 +386,7 @@ class ActionController::TestCase
458
386
  # refute_dom_equal '<a href="http://www.example.com">Oranges</a>',
459
387
  # link_to("Apples", "http://www.example.com")
460
388
  #
461
- # See also MiniTest::Rails::Expectations#wont_dom_equal
389
+ # See also Minitest::Rails::Expectations#wont_dom_equal
462
390
  #
463
391
  # :method: assert_dom_equal
464
392
  # :call-seq: assert_dom_equal(expected, actual, message = nil)
@@ -555,7 +483,7 @@ class ActionController::TestCase
555
483
  # that allow optional closing tags (p, li, td). <em>You must explicitly
556
484
  # close all of your tags to use these assertions.</em>
557
485
  #
558
- # See also MiniTest::Rails::Expectations#must_have_tag
486
+ # See also Minitest::Rails::Expectations#must_have_tag
559
487
  #
560
488
  # :method: assert_tag
561
489
  # :call-seq: assert_tag(*opts)
@@ -575,7 +503,7 @@ class ActionController::TestCase
575
503
  # assert_no_tag tag: "p",
576
504
  # children: { count: 1..3, only: { tag: "img" } }
577
505
  #
578
- # See also MiniTest::Rails::Expectations#wont_have_tag
506
+ # See also Minitest::Rails::Expectations#wont_have_tag
579
507
  #
580
508
  # :method: assert_no_tag
581
509
  # :call-seq: assert_no_tag(*opts)
@@ -595,7 +523,7 @@ class ActionController::TestCase
595
523
  # assert_no_tag tag: "p",
596
524
  # children: { count: 1..3, only: { tag: "img" } }
597
525
  #
598
- # See also MiniTest::Rails::Expectations#wont_have_tag
526
+ # See also Minitest::Rails::Expectations#wont_have_tag
599
527
  #
600
528
  # :method: refute_tag
601
529
  # :call-seq: refute_tag(*opts)
@@ -603,78 +531,6 @@ class ActionController::TestCase
603
531
  end
604
532
 
605
533
  class ActionView::TestCase
606
- ##
607
- # Checks if an expression is blank. Passes if actual.blank? is true.
608
- #
609
- # === This assertion is deprecated.
610
- #
611
- # Use the following to check for <tt>blank?</tt> instead:
612
- #
613
- # assert actual.blank?
614
- #
615
- # The deprecated assertion can be called like this:
616
- #
617
- # assert_blank []
618
- #
619
- # See also MiniTest::Rails::Expectations#must_be_blank
620
- #
621
- # :method: assert_blank
622
- # :call-seq: assert_blank(actual, message = nil)
623
-
624
- ##
625
- # Checks if an expression is not present. Passes if actual.present? is false.
626
- #
627
- # === This assertion is deprecated.
628
- #
629
- # Use the following to check for <tt>present?</tt> instead:
630
- #
631
- # refute actual.present?
632
- #
633
- # The deprecated assertion can be called like this:
634
- #
635
- # refute_present nil
636
- #
637
- # See also MiniTest::Rails::Expectations#wont_be_present
638
- #
639
- # :args: actual, message = nil
640
- alias :refute_present :assert_blank
641
-
642
- ##
643
- # Checks if an expression is present. Passes if actual.present? is true.
644
- #
645
- # === This assertion is deprecated.
646
- #
647
- # Use the following to check for <tt>present?</tt> instead:
648
- #
649
- # assert actual.present?
650
- #
651
- # The deprecated assertion can be called like this:
652
- #
653
- # assert_present Object.new
654
- #
655
- # See also MiniTest::Rails::Expectations#must_be_present
656
- #
657
- # :method: assert_present
658
- # :call-seq: assert_present(actual, message = nil)
659
-
660
- ##
661
- # Checks if an expression is not blank. Passes if actual.blank? is false.
662
- #
663
- # === This assertion is deprecated.
664
- #
665
- # Use the following to check for <tt>blank?</tt> instead:
666
- #
667
- # refute actual.blank?
668
- #
669
- # The deprecated assertion can be called like this:
670
- #
671
- # refute_blank [1,2,3]
672
- #
673
- # See also MiniTest::Rails::Expectations#wont_be_blank
674
- #
675
- # :args: actual, message = nil
676
- alias :refute_blank :assert_present
677
-
678
534
  ##
679
535
  # Checks the numeric difference between the return value of an expression as a result of what is evaluated.
680
536
  #
@@ -682,7 +538,7 @@ class ActionView::TestCase
682
538
  # User.create
683
539
  # end
684
540
  #
685
- # See also MiniTest::Rails::Expectations#must_change
541
+ # See also Minitest::Rails::Expectations#must_change
686
542
  #
687
543
  # :method: assert_difference
688
544
  # :call-seq: assert_difference(expression, difference = 1, message = nil, &block)
@@ -694,7 +550,7 @@ class ActionView::TestCase
694
550
  # User.new
695
551
  # end
696
552
  #
697
- # See also MiniTest::Rails::Expectations#wont_change
553
+ # See also Minitest::Rails::Expectations#wont_change
698
554
  #
699
555
  # :method: assert_no_difference
700
556
  # :call-seq: assert_no_difference(expression, message = nil, &block)
@@ -706,7 +562,7 @@ class ActionView::TestCase
706
562
  # User.new
707
563
  # end
708
564
  #
709
- # See also MiniTest::Rails::Expectations#wont_change
565
+ # See also Minitest::Rails::Expectations#wont_change
710
566
  #
711
567
  # :args: expression, message = nil, &block
712
568
  alias :refute_difference :assert_no_difference
@@ -731,7 +587,7 @@ class ActionController::TestCase
731
587
  # # assert that the response code was status code 401 (unauthorized)
732
588
  # assert_response 401
733
589
  #
734
- # See also MiniTest::Rails::Expectations#must_respond_with
590
+ # See also Minitest::Rails::Expectations#must_respond_with
735
591
  #
736
592
  # :method: assert_response
737
593
  # :call-seq: assert_response(type, message = nil)
@@ -753,7 +609,7 @@ class ActionController::TestCase
753
609
  # # asserts that the redirection matches the regular expression
754
610
  # assert_redirected_to %r(\Ahttp://example.org)
755
611
  #
756
- # See also MiniTest::Rails::Expectations#must_redirect_to
612
+ # See also Minitest::Rails::Expectations#must_redirect_to
757
613
  #
758
614
  # :method: assert_redirected_to
759
615
  # :call-seq: assert_redirected_to(options = {}, message=nil)
@@ -788,7 +644,7 @@ class ActionController::TestCase
788
644
  # # assert that the "_customer" partial was rendered with a specific object
789
645
  # assert_template partial: '_customer', locals: { customer: @customer }
790
646
  #
791
- # See also MiniTest::Rails::Expectations#must_render_template
647
+ # See also Minitest::Rails::Expectations#must_render_template
792
648
  #
793
649
  # :method: assert_template
794
650
  # :call-seq: assert_template(options = {}, message = nil)
@@ -812,7 +668,7 @@ class ActionController::TestCase
812
668
  # # Asserts that the generated route gives us our custom route
813
669
  # assert_generates "changesets/12", { controller: 'scm', action: 'show_diff', revision: "12" }
814
670
  #
815
- # See also MiniTest::Rails::Expectations#must_route_to
671
+ # See also Minitest::Rails::Expectations#must_route_to
816
672
  #
817
673
  # :method: assert_generates
818
674
  # :call-seq: assert_generates(expected_path, options, defaults={}, extras = {}, message=nil)
@@ -849,7 +705,7 @@ class ActionController::TestCase
849
705
  # # Test a custom route
850
706
  # assert_recognizes({controller: 'items', action: 'show', id: '1'}, 'view/item1')
851
707
  #
852
- # See also MiniTest::Rails::Expectations#must_route_from
708
+ # See also Minitest::Rails::Expectations#must_route_from
853
709
  #
854
710
  # :method: assert_recognizes
855
711
  # :call-seq: assert_recognizes(expected_options, path, extras={}, msg=nil)
@@ -877,7 +733,7 @@ class ActionController::TestCase
877
733
  # # Tests a route with a HTTP method
878
734
  # assert_routing({ method: 'put', path: '/product/321' }, { controller: "product", action: "update", id: "321" })
879
735
  #
880
- # See also MiniTest::Rails::Expectations#must_route
736
+ # See also Minitest::Rails::Expectations#must_route
881
737
  #
882
738
  # :method: assert_routing
883
739
  # :call-seq: assert_routing(path, options, defaults={}, extras={}, message=nil)
@@ -970,7 +826,7 @@ class ActionController::TestCase
970
826
  # assert_select "[name=?]", /.+/ # Not empty
971
827
  # end
972
828
  #
973
- # See also MiniTest::Rails::Expectations#must_select
829
+ # See also Minitest::Rails::Expectations#must_select
974
830
  #
975
831
  # :method: assert_select
976
832
  # :call-seq: assert_select(*args, &block)
@@ -991,7 +847,7 @@ class ActionController::TestCase
991
847
  # end
992
848
  # end
993
849
  #
994
- # See also MiniTest::Rails::Expectations#must_select_email
850
+ # See also Minitest::Rails::Expectations#must_select_email
995
851
  #
996
852
  # :method: assert_select_email
997
853
  # :call-seq: assert_select_email(&block)
@@ -1029,7 +885,7 @@ class ActionController::TestCase
1029
885
  # end
1030
886
  # end
1031
887
  #
1032
- # See also MiniTest::Rails::Expectations#must_select_encoded
888
+ # See also Minitest::Rails::Expectations#must_select_encoded
1033
889
  #
1034
890
  # :method: assert_select_encoded
1035
891
  # :call-seq: assert_select_encoded(element = nil, &block)
@@ -1040,7 +896,7 @@ class ActionController::TestCase
1040
896
  # assert_dom_equal '<a href="http://www.example.com">Apples</a>',
1041
897
  # link_to("Apples", "http://www.example.com")
1042
898
  #
1043
- # See also MiniTest::Rails::Expectations#must_dom_equal
899
+ # See also Minitest::Rails::Expectations#must_dom_equal
1044
900
  #
1045
901
  # :method: assert_dom_equal
1046
902
  # :call-seq: assert_dom_equal(expected, actual, message = nil)
@@ -1051,7 +907,7 @@ class ActionController::TestCase
1051
907
  # assert_dom_not_equal '<a href="http://www.example.com">Oranges</a>',
1052
908
  # link_to("Apples", "http://www.example.com")
1053
909
  #
1054
- # See also MiniTest::Rails::Expectations#wont_dom_equal
910
+ # See also Minitest::Rails::Expectations#wont_dom_equal
1055
911
  #
1056
912
  # :method: assert_dom_not_equal
1057
913
  # :call-seq: assert_dom_not_equal(expected, actual, message = nil)
@@ -1062,7 +918,7 @@ class ActionController::TestCase
1062
918
  # refute_dom_equal '<a href="http://www.example.com">Oranges</a>',
1063
919
  # link_to("Apples", "http://www.example.com")
1064
920
  #
1065
- # See also MiniTest::Rails::Expectations#wont_dom_equal
921
+ # See also Minitest::Rails::Expectations#wont_dom_equal
1066
922
  #
1067
923
  # :method: assert_dom_equal
1068
924
  # :call-seq: assert_dom_equal(expected, actual, message = nil)
@@ -1159,7 +1015,7 @@ class ActionController::TestCase
1159
1015
  # that allow optional closing tags (p, li, td). <em>You must explicitly
1160
1016
  # close all of your tags to use these assertions.</em>
1161
1017
  #
1162
- # See also MiniTest::Rails::Expectations#must_have_tag
1018
+ # See also Minitest::Rails::Expectations#must_have_tag
1163
1019
  #
1164
1020
  # :method: assert_tag
1165
1021
  # :call-seq: assert_tag(*opts)
@@ -1179,7 +1035,7 @@ class ActionController::TestCase
1179
1035
  # assert_no_tag tag: "p",
1180
1036
  # children: { count: 1..3, only: { tag: "img" } }
1181
1037
  #
1182
- # See also MiniTest::Rails::Expectations#wont_have_tag
1038
+ # See also Minitest::Rails::Expectations#wont_have_tag
1183
1039
  #
1184
1040
  # :method: assert_no_tag
1185
1041
  # :call-seq: assert_no_tag(*opts)
@@ -1199,7 +1055,7 @@ class ActionController::TestCase
1199
1055
  # assert_no_tag tag: "p",
1200
1056
  # children: { count: 1..3, only: { tag: "img" } }
1201
1057
  #
1202
- # See also MiniTest::Rails::Expectations#wont_have_tag
1058
+ # See also Minitest::Rails::Expectations#wont_have_tag
1203
1059
  #
1204
1060
  # :method: refute_tag
1205
1061
  # :call-seq: refute_tag(*opts)
@@ -1207,78 +1063,6 @@ class ActionController::TestCase
1207
1063
  end
1208
1064
 
1209
1065
  class ActionDispatch::IntegrationTest
1210
- ##
1211
- # Checks if an expression is blank. Passes if actual.blank? is true.
1212
- #
1213
- # === This assertion is deprecated.
1214
- #
1215
- # Use the following to check for <tt>blank?</tt> instead:
1216
- #
1217
- # assert actual.blank?
1218
- #
1219
- # The deprecated assertion can be called like this:
1220
- #
1221
- # assert_blank []
1222
- #
1223
- # See also MiniTest::Rails::Expectations#must_be_blank
1224
- #
1225
- # :method: assert_blank
1226
- # :call-seq: assert_blank(actual, message = nil)
1227
-
1228
- ##
1229
- # Checks if an expression is not present. Passes if actual.present? is false.
1230
- #
1231
- # === This assertion is deprecated.
1232
- #
1233
- # Use the following to check for <tt>present?</tt> instead:
1234
- #
1235
- # refute actual.present?
1236
- #
1237
- # The deprecated assertion can be called like this:
1238
- #
1239
- # refute_present nil
1240
- #
1241
- # See also MiniTest::Rails::Expectations#wont_be_present
1242
- #
1243
- # :args: actual, message = nil
1244
- alias :refute_present :assert_blank
1245
-
1246
- ##
1247
- # Checks if an expression is present. Passes if actual.present? is true.
1248
- #
1249
- # === This assertion is deprecated.
1250
- #
1251
- # Use the following to check for <tt>present?</tt> instead:
1252
- #
1253
- # assert actual.present?
1254
- #
1255
- # The deprecated assertion can be called like this:
1256
- #
1257
- # assert_present Object.new
1258
- #
1259
- # See also MiniTest::Rails::Expectations#must_be_present
1260
- #
1261
- # :method: assert_present
1262
- # :call-seq: assert_present(actual, message = nil)
1263
-
1264
- ##
1265
- # Checks if an expression is not blank. Passes if actual.blank? is false.
1266
- #
1267
- # === This assertion is deprecated.
1268
- #
1269
- # Use the following to check for <tt>blank?</tt> instead:
1270
- #
1271
- # refute actual.blank?
1272
- #
1273
- # The deprecated assertion can be called like this:
1274
- #
1275
- # refute_blank [1,2,3]
1276
- #
1277
- # See also MiniTest::Rails::Expectations#wont_be_blank
1278
- #
1279
- # :args: actual, message = nil
1280
- alias :refute_blank :assert_present
1281
-
1282
1066
  ##
1283
1067
  # Checks the numeric difference between the return value of an expression as a result of what is evaluated.
1284
1068
  #
@@ -1286,7 +1070,7 @@ class ActionDispatch::IntegrationTest
1286
1070
  # User.create
1287
1071
  # end
1288
1072
  #
1289
- # See also MiniTest::Rails::Expectations#must_change
1073
+ # See also Minitest::Rails::Expectations#must_change
1290
1074
  #
1291
1075
  # :method: assert_difference
1292
1076
  # :call-seq: assert_difference(expression, difference = 1, message = nil, &block)
@@ -1298,7 +1082,7 @@ class ActionDispatch::IntegrationTest
1298
1082
  # User.new
1299
1083
  # end
1300
1084
  #
1301
- # See also MiniTest::Rails::Expectations#wont_change
1085
+ # See also Minitest::Rails::Expectations#wont_change
1302
1086
  #
1303
1087
  # :method: assert_no_difference
1304
1088
  # :call-seq: assert_no_difference(expression, message = nil, &block)
@@ -1310,7 +1094,7 @@ class ActionDispatch::IntegrationTest
1310
1094
  # User.new
1311
1095
  # end
1312
1096
  #
1313
- # See also MiniTest::Rails::Expectations#wont_change
1097
+ # See also Minitest::Rails::Expectations#wont_change
1314
1098
  #
1315
1099
  # :args: expression, message = nil, &block
1316
1100
  alias :refute_difference :assert_no_difference
@@ -1335,7 +1119,7 @@ class ActionController::TestCase
1335
1119
  # # assert that the response code was status code 401 (unauthorized)
1336
1120
  # assert_response 401
1337
1121
  #
1338
- # See also MiniTest::Rails::Expectations#must_respond_with
1122
+ # See also Minitest::Rails::Expectations#must_respond_with
1339
1123
  #
1340
1124
  # :method: assert_response
1341
1125
  # :call-seq: assert_response(type, message = nil)
@@ -1357,7 +1141,7 @@ class ActionController::TestCase
1357
1141
  # # asserts that the redirection matches the regular expression
1358
1142
  # assert_redirected_to %r(\Ahttp://example.org)
1359
1143
  #
1360
- # See also MiniTest::Rails::Expectations#must_redirect_to
1144
+ # See also Minitest::Rails::Expectations#must_redirect_to
1361
1145
  #
1362
1146
  # :method: assert_redirected_to
1363
1147
  # :call-seq: assert_redirected_to(options = {}, message=nil)
@@ -1392,7 +1176,7 @@ class ActionController::TestCase
1392
1176
  # # assert that the "_customer" partial was rendered with a specific object
1393
1177
  # assert_template partial: '_customer', locals: { customer: @customer }
1394
1178
  #
1395
- # See also MiniTest::Rails::Expectations#must_render_template
1179
+ # See also Minitest::Rails::Expectations#must_render_template
1396
1180
  #
1397
1181
  # :method: assert_template
1398
1182
  # :call-seq: assert_template(options = {}, message = nil)
@@ -1416,7 +1200,7 @@ class ActionController::TestCase
1416
1200
  # # Asserts that the generated route gives us our custom route
1417
1201
  # assert_generates "changesets/12", { controller: 'scm', action: 'show_diff', revision: "12" }
1418
1202
  #
1419
- # See also MiniTest::Rails::Expectations#must_route_to
1203
+ # See also Minitest::Rails::Expectations#must_route_to
1420
1204
  #
1421
1205
  # :method: assert_generates
1422
1206
  # :call-seq: assert_generates(expected_path, options, defaults={}, extras = {}, message=nil)
@@ -1453,7 +1237,7 @@ class ActionController::TestCase
1453
1237
  # # Test a custom route
1454
1238
  # assert_recognizes({controller: 'items', action: 'show', id: '1'}, 'view/item1')
1455
1239
  #
1456
- # See also MiniTest::Rails::Expectations#must_route_from
1240
+ # See also Minitest::Rails::Expectations#must_route_from
1457
1241
  #
1458
1242
  # :method: assert_recognizes
1459
1243
  # :call-seq: assert_recognizes(expected_options, path, extras={}, msg=nil)
@@ -1481,7 +1265,7 @@ class ActionController::TestCase
1481
1265
  # # Tests a route with a HTTP method
1482
1266
  # assert_routing({ method: 'put', path: '/product/321' }, { controller: "product", action: "update", id: "321" })
1483
1267
  #
1484
- # See also MiniTest::Rails::Expectations#must_route
1268
+ # See also Minitest::Rails::Expectations#must_route
1485
1269
  #
1486
1270
  # :method: assert_routing
1487
1271
  # :call-seq: assert_routing(path, options, defaults={}, extras={}, message=nil)
@@ -1574,7 +1358,7 @@ class ActionController::TestCase
1574
1358
  # assert_select "[name=?]", /.+/ # Not empty
1575
1359
  # end
1576
1360
  #
1577
- # See also MiniTest::Rails::Expectations#must_select
1361
+ # See also Minitest::Rails::Expectations#must_select
1578
1362
  #
1579
1363
  # :method: assert_select
1580
1364
  # :call-seq: assert_select(*args, &block)
@@ -1595,7 +1379,7 @@ class ActionController::TestCase
1595
1379
  # end
1596
1380
  # end
1597
1381
  #
1598
- # See also MiniTest::Rails::Expectations#must_select_email
1382
+ # See also Minitest::Rails::Expectations#must_select_email
1599
1383
  #
1600
1384
  # :method: assert_select_email
1601
1385
  # :call-seq: assert_select_email(&block)
@@ -1633,7 +1417,7 @@ class ActionController::TestCase
1633
1417
  # end
1634
1418
  # end
1635
1419
  #
1636
- # See also MiniTest::Rails::Expectations#must_select_encoded
1420
+ # See also Minitest::Rails::Expectations#must_select_encoded
1637
1421
  #
1638
1422
  # :method: assert_select_encoded
1639
1423
  # :call-seq: assert_select_encoded(element = nil, &block)
@@ -1644,7 +1428,7 @@ class ActionController::TestCase
1644
1428
  # assert_dom_equal '<a href="http://www.example.com">Apples</a>',
1645
1429
  # link_to("Apples", "http://www.example.com")
1646
1430
  #
1647
- # See also MiniTest::Rails::Expectations#must_dom_equal
1431
+ # See also Minitest::Rails::Expectations#must_dom_equal
1648
1432
  #
1649
1433
  # :method: assert_dom_equal
1650
1434
  # :call-seq: assert_dom_equal(expected, actual, message = nil)
@@ -1655,7 +1439,7 @@ class ActionController::TestCase
1655
1439
  # assert_dom_not_equal '<a href="http://www.example.com">Oranges</a>',
1656
1440
  # link_to("Apples", "http://www.example.com")
1657
1441
  #
1658
- # See also MiniTest::Rails::Expectations#wont_dom_equal
1442
+ # See also Minitest::Rails::Expectations#wont_dom_equal
1659
1443
  #
1660
1444
  # :method: assert_dom_not_equal
1661
1445
  # :call-seq: assert_dom_not_equal(expected, actual, message = nil)
@@ -1666,7 +1450,7 @@ class ActionController::TestCase
1666
1450
  # refute_dom_equal '<a href="http://www.example.com">Oranges</a>',
1667
1451
  # link_to("Apples", "http://www.example.com")
1668
1452
  #
1669
- # See also MiniTest::Rails::Expectations#wont_dom_equal
1453
+ # See also Minitest::Rails::Expectations#wont_dom_equal
1670
1454
  #
1671
1455
  # :method: assert_dom_equal
1672
1456
  # :call-seq: assert_dom_equal(expected, actual, message = nil)
@@ -1763,7 +1547,7 @@ class ActionController::TestCase
1763
1547
  # that allow optional closing tags (p, li, td). <em>You must explicitly
1764
1548
  # close all of your tags to use these assertions.</em>
1765
1549
  #
1766
- # See also MiniTest::Rails::Expectations#must_have_tag
1550
+ # See also Minitest::Rails::Expectations#must_have_tag
1767
1551
  #
1768
1552
  # :method: assert_tag
1769
1553
  # :call-seq: assert_tag(*opts)
@@ -1783,7 +1567,7 @@ class ActionController::TestCase
1783
1567
  # assert_no_tag tag: "p",
1784
1568
  # children: { count: 1..3, only: { tag: "img" } }
1785
1569
  #
1786
- # See also MiniTest::Rails::Expectations#wont_have_tag
1570
+ # See also Minitest::Rails::Expectations#wont_have_tag
1787
1571
  #
1788
1572
  # :method: assert_no_tag
1789
1573
  # :call-seq: assert_no_tag(*opts)
@@ -1803,7 +1587,7 @@ class ActionController::TestCase
1803
1587
  # assert_no_tag tag: "p",
1804
1588
  # children: { count: 1..3, only: { tag: "img" } }
1805
1589
  #
1806
- # See also MiniTest::Rails::Expectations#wont_have_tag
1590
+ # See also Minitest::Rails::Expectations#wont_have_tag
1807
1591
  #
1808
1592
  # :method: refute_tag
1809
1593
  # :call-seq: refute_tag(*opts)