rails-controller-testing 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/rails/controller/testing/integration.rb +3 -4
- data/lib/rails/controller/testing/version.rb +1 -1
- data/test/dummy/log/test.log +362 -0
- metadata +47 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a10611286fe68f159c553eee2b77210a3b42de2f7fc8d7897da80f5270160745
|
4
|
+
data.tar.gz: 25e4f3f47887d7d2c5c4c9561ca819d215b81c8525e24575821ce14377275fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 726c23a8a35209e86afae98b0653ec4f15519eeafdb35b1f2f08a92d7df442b4fd5cd8a60920811be871d4a336d7c0abd572427e8a574b8f8ae1a30ab2e5e37f
|
7
|
+
data.tar.gz: be8adbe9376c3dc93e790f8dcde2b2afdb9ebbb7d82a284293a429fbc6acef682ba707e6016c39a521cc729b86c90eb082818450ac18277382b9aa299a655f7b
|
@@ -2,11 +2,10 @@ module Rails
|
|
2
2
|
module Controller
|
3
3
|
module Testing
|
4
4
|
module Integration
|
5
|
-
%w(
|
6
|
-
|
7
|
-
xhr get_via_redirect post_via_redirect
|
8
|
-
).each do |method|
|
5
|
+
http_verbs = %w(get post patch put head delete get_via_redirect post_via_redirect)
|
6
|
+
http_verbs.push('xhr', 'xml_http_request') if ActionPack.version < Gem::Version.new('5.1')
|
9
7
|
|
8
|
+
http_verbs.each do |method|
|
10
9
|
define_method(method) do |*args|
|
11
10
|
reset_template_assertion
|
12
11
|
super(*args)
|
data/test/dummy/log/test.log
CHANGED
@@ -3544,3 +3544,365 @@ AssignsControllerTest: test_view_assigns
|
|
3544
3544
|
----------------------------------------
|
3545
3545
|
Processing by ViewAssignsController#test_assigns as HTML
|
3546
3546
|
Completed 200 OK in 0ms
|
3547
|
+
-----------------------------------
|
3548
|
+
AssignsControllerTest: test_assigns
|
3549
|
+
-----------------------------------
|
3550
|
+
Processing by AssignsController#test_assigns as HTML
|
3551
|
+
Completed 200 OK in 0ms
|
3552
|
+
----------------------------------------
|
3553
|
+
AssignsControllerTest: test_view_assigns
|
3554
|
+
----------------------------------------
|
3555
|
+
Processing by ViewAssignsController#test_assigns as HTML
|
3556
|
+
Completed 200 OK in 0ms
|
3557
|
+
----------------------------------------------------------------------------------------
|
3558
|
+
RenderTemplateTest: test_raises_descriptive_error_message_when_template_was_not_rendered
|
3559
|
+
----------------------------------------------------------------------------------------
|
3560
|
+
Rendering test/hello_world_with_partial.html.erb
|
3561
|
+
Rendered test/_partial.html.erb (0.3ms)
|
3562
|
+
Rendered test/hello_world_with_partial.html.erb (31.7ms)
|
3563
|
+
-------------------------------------------------------------------------------------------------------------
|
3564
|
+
RenderTemplateTest: test_specifying_locals_works_when_the_partial_is_inside_a_directory_with_underline_prefix
|
3565
|
+
-------------------------------------------------------------------------------------------------------------
|
3566
|
+
Rendering test/render_partial_inside_directory.html.erb
|
3567
|
+
Rendered test/_directory/_partial_with_locales.html.erb (0.3ms)
|
3568
|
+
Rendered test/render_partial_inside_directory.html.erb (41.2ms)
|
3569
|
+
----------------------------------------------------------------------------------------------------------------
|
3570
|
+
RenderTemplateTest: test_specifying_locals_works_when_the_partial_is_inside_a_directory_without_underline_prefix
|
3571
|
+
----------------------------------------------------------------------------------------------------------------
|
3572
|
+
Rendering test/render_partial_inside_directory.html.erb
|
3573
|
+
Rendered test/_directory/_partial_with_locales.html.erb (0.0ms)
|
3574
|
+
Rendered test/render_partial_inside_directory.html.erb (0.1ms)
|
3575
|
+
-------------------------------------------------------------
|
3576
|
+
RenderTemplateTest: test_supports_specifying_locals_(passing)
|
3577
|
+
-------------------------------------------------------------
|
3578
|
+
Rendering test/calling_partial_with_layout.html.erb
|
3579
|
+
Rendered test/_partial_for_use_in_layout.html.erb (27.5ms)
|
3580
|
+
Rendered test/calling_partial_with_layout.html.erb (58.4ms)
|
3581
|
+
-------------------------------------------------------------
|
3582
|
+
RenderTemplateTest: test_supports_specifying_locals_(failing)
|
3583
|
+
-------------------------------------------------------------
|
3584
|
+
Rendering test/calling_partial_with_layout.html.erb
|
3585
|
+
Rendered test/_partial_for_use_in_layout.html.erb (0.1ms)
|
3586
|
+
Rendered test/calling_partial_with_layout.html.erb (0.2ms)
|
3587
|
+
-----------------------------------------------------
|
3588
|
+
RenderTemplateTest: test_supports_specifying_partials
|
3589
|
+
-----------------------------------------------------
|
3590
|
+
Rendering test/calling_partial_with_layout.html.erb
|
3591
|
+
Rendered test/_partial_for_use_in_layout.html.erb (0.1ms)
|
3592
|
+
Rendered test/calling_partial_with_layout.html.erb (0.2ms)
|
3593
|
+
--------------------------------------------------------------------
|
3594
|
+
RenderTemplateTest: test_supports_specifying_templates_with_a_Regexp
|
3595
|
+
--------------------------------------------------------------------
|
3596
|
+
Rendering test/hello_world.html.erb
|
3597
|
+
Rendered test/hello_world.html.erb (0.3ms)
|
3598
|
+
----------------------------------------------------------------------
|
3599
|
+
RenderTemplateTest: test_supports_different_locals_on_the_same_partial
|
3600
|
+
----------------------------------------------------------------------
|
3601
|
+
Rendering test/render_two_partials.html.erb
|
3602
|
+
Rendered test/_partial.html.erb (0.3ms)
|
3603
|
+
Rendered test/_partial.html.erb (0.4ms)
|
3604
|
+
Rendered test/render_two_partials.html.erb (52.3ms)
|
3605
|
+
---------------------------------------------------------------------
|
3606
|
+
TemplateAssertionsIntegrationTest: test_layout_reset_between_requests
|
3607
|
+
---------------------------------------------------------------------
|
3608
|
+
Started GET "/template_assertions/render_with_layout" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3609
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3610
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3611
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.3ms)
|
3612
|
+
Completed 200 OK in 7ms (Views: 6.6ms)
|
3613
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3614
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3615
|
+
Completed 200 OK in 0ms
|
3616
|
+
-------------------------------------------------------------------------------
|
3617
|
+
TemplateAssertionsIntegrationTest: test_cookies_do_not_reset_template_assertion
|
3618
|
+
-------------------------------------------------------------------------------
|
3619
|
+
Started GET "/template_assertions/render_with_layout" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3620
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3621
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3622
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.1ms)
|
3623
|
+
Completed 200 OK in 1ms (Views: 0.7ms)
|
3624
|
+
--------------------------------------------------------------------------------------------
|
3625
|
+
TemplateAssertionsIntegrationTest: test_layout_reset_between_requests_when_opening_a_session
|
3626
|
+
--------------------------------------------------------------------------------------------
|
3627
|
+
Started GET "/template_assertions/render_with_layout" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3628
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3629
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3630
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.1ms)
|
3631
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
3632
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3633
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3634
|
+
Completed 200 OK in 0ms
|
3635
|
+
-------------------------------------------------------------------------------
|
3636
|
+
TemplateAssertionsIntegrationTest: test_assigns_do_not_reset_template_assertion
|
3637
|
+
-------------------------------------------------------------------------------
|
3638
|
+
Started GET "/template_assertions/render_with_layout" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3639
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3640
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3641
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.1ms)
|
3642
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
3643
|
+
------------------------------------------------------------------------------------------
|
3644
|
+
TemplateAssertionsIntegrationTest: test_file_reset_between_requests_when_opening_a_session
|
3645
|
+
------------------------------------------------------------------------------------------
|
3646
|
+
Started GET "/template_assertions/render_file_relative_path" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3647
|
+
Processing by TemplateAssertionsController#render_file_relative_path as HTML
|
3648
|
+
Rendering README.rdoc
|
3649
|
+
Rendered README.rdoc (0.5ms)
|
3650
|
+
Completed 200 OK in 12ms (Views: 11.9ms)
|
3651
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3652
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3653
|
+
Completed 200 OK in 0ms
|
3654
|
+
-----------------------------------------------------------------------
|
3655
|
+
TemplateAssertionsIntegrationTest: test_template_reset_between_requests
|
3656
|
+
-----------------------------------------------------------------------
|
3657
|
+
Started GET "/template_assertions/render_with_template" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3658
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3659
|
+
Rendering test/hello_world.html.erb
|
3660
|
+
Rendered test/hello_world.html.erb (0.1ms)
|
3661
|
+
Completed 200 OK in 1ms (Views: 0.7ms)
|
3662
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3663
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3664
|
+
Completed 200 OK in 0ms
|
3665
|
+
----------------------------------------------------------------------------------------------
|
3666
|
+
TemplateAssertionsIntegrationTest: test_template_reset_between_requests_when_opening_a_session
|
3667
|
+
----------------------------------------------------------------------------------------------
|
3668
|
+
Started GET "/template_assertions/render_with_template" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3669
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3670
|
+
Rendering test/hello_world.html.erb
|
3671
|
+
Rendered test/hello_world.html.erb (0.1ms)
|
3672
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
3673
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3674
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3675
|
+
Completed 200 OK in 0ms
|
3676
|
+
-------------------------------------------------------------------
|
3677
|
+
TemplateAssertionsIntegrationTest: test_file_reset_between_requests
|
3678
|
+
-------------------------------------------------------------------
|
3679
|
+
Started GET "/template_assertions/render_file_relative_path" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3680
|
+
Processing by TemplateAssertionsController#render_file_relative_path as HTML
|
3681
|
+
Rendering README.rdoc
|
3682
|
+
Rendered README.rdoc (0.1ms)
|
3683
|
+
Completed 200 OK in 1ms (Views: 0.7ms)
|
3684
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3685
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3686
|
+
Completed 200 OK in 0ms
|
3687
|
+
----------------------------------------------------------------------
|
3688
|
+
TemplateAssertionsIntegrationTest: test_partial_reset_between_requests
|
3689
|
+
----------------------------------------------------------------------
|
3690
|
+
Started GET "/template_assertions/render_with_partial" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3691
|
+
Processing by TemplateAssertionsController#render_with_partial as HTML
|
3692
|
+
Rendered test/_partial.html.erb (0.3ms)
|
3693
|
+
Completed 200 OK in 2ms (Views: 2.1ms)
|
3694
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3695
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3696
|
+
Completed 200 OK in 0ms
|
3697
|
+
---------------------------------------------------------------------------------------------
|
3698
|
+
TemplateAssertionsIntegrationTest: test_partial_reset_between_requests_when_opening_a_session
|
3699
|
+
---------------------------------------------------------------------------------------------
|
3700
|
+
Started GET "/template_assertions/render_with_partial" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3701
|
+
Processing by TemplateAssertionsController#render_with_partial as HTML
|
3702
|
+
Rendered test/_partial.html.erb (0.0ms)
|
3703
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
3704
|
+
Started GET "/template_assertions/render_nothing" for 127.0.0.1 at 2018-11-29 16:32:50 -0500
|
3705
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3706
|
+
Completed 200 OK in 0ms
|
3707
|
+
-------------------------------------------------------------------------------------
|
3708
|
+
TemplateAssertionsControllerTest: test_with_empty_string_fails_when_template_rendered
|
3709
|
+
-------------------------------------------------------------------------------------
|
3710
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3711
|
+
Rendering test/hello_world.html.erb
|
3712
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3713
|
+
Completed 200 OK in 0ms (Views: 0.4ms)
|
3714
|
+
-----------------------------------------------------------------------------------
|
3715
|
+
TemplateAssertionsControllerTest: test_with_invalid_hash_keys_raises_argument_error
|
3716
|
+
-----------------------------------------------------------------------------------
|
3717
|
+
--------------------------------------------------------------
|
3718
|
+
TemplateAssertionsControllerTest: test_fails_with_wrong_layout
|
3719
|
+
--------------------------------------------------------------
|
3720
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3721
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3722
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3723
|
+
Completed 200 OK in 0ms (Views: 0.4ms)
|
3724
|
+
---------------------------------------------------
|
3725
|
+
TemplateAssertionsControllerTest: test_with_partial
|
3726
|
+
---------------------------------------------------
|
3727
|
+
Processing by TemplateAssertionsController#render_with_partial as HTML
|
3728
|
+
Rendered test/_partial.html.erb (0.1ms)
|
3729
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
3730
|
+
----------------------------------------------------------------------------------------
|
3731
|
+
TemplateAssertionsControllerTest: test_locals_option_to_assert_template_is_not_supported
|
3732
|
+
----------------------------------------------------------------------------------------
|
3733
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3734
|
+
Completed 200 OK in 0ms
|
3735
|
+
-----------------------------------------------------------------
|
3736
|
+
TemplateAssertionsControllerTest: test_passes_with_correct_layout
|
3737
|
+
-----------------------------------------------------------------
|
3738
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3739
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3740
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3741
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3742
|
+
-----------------------------------------------------------------
|
3743
|
+
TemplateAssertionsControllerTest: test_passes_with_correct_string
|
3744
|
+
-----------------------------------------------------------------
|
3745
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3746
|
+
Rendering test/hello_world.html.erb
|
3747
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3748
|
+
Completed 200 OK in 1ms (Views: 0.5ms)
|
3749
|
+
--------------------------------------------------------------------------------
|
3750
|
+
TemplateAssertionsControllerTest: test_with_nil_passes_when_no_template_rendered
|
3751
|
+
--------------------------------------------------------------------------------
|
3752
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3753
|
+
Completed 200 OK in 0ms
|
3754
|
+
------------------------------------------------------------------------
|
3755
|
+
TemplateAssertionsControllerTest: test_passes_with_correct_layout_symbol
|
3756
|
+
------------------------------------------------------------------------
|
3757
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3758
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3759
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3760
|
+
Completed 200 OK in 0ms (Views: 0.4ms)
|
3761
|
+
-----------------------------------------------------------------------
|
3762
|
+
TemplateAssertionsControllerTest: test_fails_with_repeated_name_in_path
|
3763
|
+
-----------------------------------------------------------------------
|
3764
|
+
Processing by TemplateAssertionsController#render_with_template_repeating_in_path as HTML
|
3765
|
+
Rendering test/hello/hello.html.erb
|
3766
|
+
Rendered test/hello/hello.html.erb (0.4ms)
|
3767
|
+
Completed 200 OK in 3ms (Views: 2.5ms)
|
3768
|
+
-------------------------------------------------------------------------------
|
3769
|
+
TemplateAssertionsControllerTest: test_fails_with_incorrect_string_that_matches
|
3770
|
+
-------------------------------------------------------------------------------
|
3771
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3772
|
+
Rendering test/hello_world.html.erb
|
3773
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3774
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3775
|
+
--------------------------------------------------------
|
3776
|
+
TemplateAssertionsControllerTest: test_with_file_failure
|
3777
|
+
--------------------------------------------------------
|
3778
|
+
Processing by TemplateAssertionsController#render_file_absolute_path as HTML
|
3779
|
+
Rendering README.rdoc
|
3780
|
+
Rendered README.rdoc (0.3ms)
|
3781
|
+
Completed 200 OK in 8ms (Views: 7.8ms)
|
3782
|
+
Processing by TemplateAssertionsController#render_file_absolute_path as HTML
|
3783
|
+
Rendering README.rdoc
|
3784
|
+
Rendered README.rdoc (0.1ms)
|
3785
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
3786
|
+
------------------------------------------------------------------
|
3787
|
+
TemplateAssertionsControllerTest: test_fails_with_incorrect_string
|
3788
|
+
------------------------------------------------------------------
|
3789
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3790
|
+
Rendering test/hello_world.html.erb
|
3791
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3792
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3793
|
+
-------------------------------------------------------------------------------
|
3794
|
+
TemplateAssertionsControllerTest: test_fails_with_incorrect_symbol_that_matches
|
3795
|
+
-------------------------------------------------------------------------------
|
3796
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3797
|
+
Rendering test/hello_world.html.erb
|
3798
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3799
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3800
|
+
----------------------------------------------------------------------------------------
|
3801
|
+
TemplateAssertionsControllerTest: test_passes_with_correct_layout_without_layouts_prefix
|
3802
|
+
----------------------------------------------------------------------------------------
|
3803
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3804
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3805
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3806
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3807
|
+
----------------------------------------------------------------------
|
3808
|
+
TemplateAssertionsControllerTest: test_file_with_relative_path_success
|
3809
|
+
----------------------------------------------------------------------
|
3810
|
+
Processing by TemplateAssertionsController#render_file_relative_path as HTML
|
3811
|
+
Rendering README.rdoc
|
3812
|
+
Rendered README.rdoc (0.0ms)
|
3813
|
+
Completed 200 OK in 0ms (Views: 0.4ms)
|
3814
|
+
----------------------------------------------------------------------------
|
3815
|
+
TemplateAssertionsControllerTest: test_with_nil_fails_when_template_rendered
|
3816
|
+
----------------------------------------------------------------------------
|
3817
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3818
|
+
Rendering test/hello_world.html.erb
|
3819
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3820
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3821
|
+
------------------------------------------------------------------
|
3822
|
+
TemplateAssertionsControllerTest: test_passed_with_no_layout_false
|
3823
|
+
------------------------------------------------------------------
|
3824
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3825
|
+
Rendering test/hello_world.html.erb
|
3826
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3827
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3828
|
+
-----------------------------------------------------------------------
|
3829
|
+
TemplateAssertionsControllerTest: test_fails_expecting_not_known_layout
|
3830
|
+
-----------------------------------------------------------------------
|
3831
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3832
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3833
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3834
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3835
|
+
------------------------------------------------------------------
|
3836
|
+
TemplateAssertionsControllerTest: test_fails_with_incorrect_symbol
|
3837
|
+
------------------------------------------------------------------
|
3838
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3839
|
+
Rendering test/hello_world.html.erb
|
3840
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3841
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3842
|
+
------------------------------------------------------------
|
3843
|
+
TemplateAssertionsControllerTest: test_passed_with_no_layout
|
3844
|
+
------------------------------------------------------------
|
3845
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3846
|
+
Rendering test/hello_world.html.erb
|
3847
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3848
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3849
|
+
-----------------------------------------------------------------
|
3850
|
+
TemplateAssertionsControllerTest: test_passes_with_correct_symbol
|
3851
|
+
-----------------------------------------------------------------
|
3852
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3853
|
+
Rendering test/hello_world.html.erb
|
3854
|
+
Rendered test/hello_world.html.erb (0.1ms)
|
3855
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3856
|
+
---------------------------------------------------------------------
|
3857
|
+
TemplateAssertionsControllerTest: test_passes_with_layout_and_partial
|
3858
|
+
---------------------------------------------------------------------
|
3859
|
+
Processing by TemplateAssertionsController#render_with_layout_and_partial as HTML
|
3860
|
+
Rendering test/hello_world_with_partial.html.erb within layouts/standard
|
3861
|
+
Rendered test/_partial.html.erb (0.0ms)
|
3862
|
+
Rendered test/hello_world_with_partial.html.erb within layouts/standard (0.6ms)
|
3863
|
+
Completed 200 OK in 3ms (Views: 3.3ms)
|
3864
|
+
-----------------------------------------------------------------------------
|
3865
|
+
TemplateAssertionsControllerTest: test_assert_template_reset_between_requests
|
3866
|
+
-----------------------------------------------------------------------------
|
3867
|
+
Processing by TemplateAssertionsController#render_with_template as HTML
|
3868
|
+
Rendering test/hello_world.html.erb
|
3869
|
+
Rendered test/hello_world.html.erb (0.0ms)
|
3870
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3871
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3872
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3873
|
+
Processing by TemplateAssertionsController#render_with_partial as HTML
|
3874
|
+
Rendered test/_partial.html.erb (0.0ms)
|
3875
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
3876
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3877
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
3878
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3879
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3880
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3881
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3882
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3883
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3884
|
+
Processing by TemplateAssertionsController#render_file_relative_path as HTML
|
3885
|
+
Rendering README.rdoc
|
3886
|
+
Rendered README.rdoc (0.0ms)
|
3887
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3888
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3889
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3890
|
+
----------------------------------------------------------------------
|
3891
|
+
TemplateAssertionsControllerTest: test_file_with_absolute_path_success
|
3892
|
+
----------------------------------------------------------------------
|
3893
|
+
Processing by TemplateAssertionsController#render_file_absolute_path as HTML
|
3894
|
+
Rendering README.rdoc
|
3895
|
+
Rendered README.rdoc (0.0ms)
|
3896
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
3897
|
+
----------------------------------------------------------------------------------------
|
3898
|
+
TemplateAssertionsControllerTest: test_with_empty_string_fails_when_no_template_rendered
|
3899
|
+
----------------------------------------------------------------------------------------
|
3900
|
+
Processing by TemplateAssertionsController#render_nothing as HTML
|
3901
|
+
Completed 200 OK in 0ms
|
3902
|
+
----------------------------------------------------------------
|
3903
|
+
TemplateAssertionsControllerTest: test_fails_expecting_no_layout
|
3904
|
+
----------------------------------------------------------------
|
3905
|
+
Processing by TemplateAssertionsController#render_with_layout as HTML
|
3906
|
+
Rendering test/hello_world.html.erb within layouts/standard
|
3907
|
+
Rendered test/hello_world.html.erb within layouts/standard (0.0ms)
|
3908
|
+
Completed 200 OK in 0ms (Views: 0.3ms)
|
metadata
CHANGED
@@ -1,83 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-controller-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rails Core Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 5.x
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.0.1
|
19
|
+
version: 5.0.1.x
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 5.x
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.0.1
|
26
|
+
version: 5.0.1.x
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: actionview
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 5.x
|
40
31
|
- - ">="
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version: 5.0.1
|
33
|
+
version: 5.0.1.x
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 5.x
|
50
38
|
- - ">="
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version: 5.0.1
|
40
|
+
version: 5.0.1.x
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: activesupport
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
|
-
- - "
|
45
|
+
- - ">="
|
58
46
|
- !ruby/object:Gem::Version
|
59
|
-
version: 5.x
|
47
|
+
version: 5.0.1.x
|
60
48
|
type: :runtime
|
61
49
|
prerelease: false
|
62
50
|
version_requirements: !ruby/object:Gem::Requirement
|
63
51
|
requirements:
|
64
|
-
- - "
|
52
|
+
- - ">="
|
65
53
|
- !ruby/object:Gem::Version
|
66
|
-
version: 5.x
|
54
|
+
version: 5.0.1.x
|
67
55
|
- !ruby/object:Gem::Dependency
|
68
56
|
name: railties
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
70
58
|
requirements:
|
71
|
-
- - "
|
59
|
+
- - ">"
|
72
60
|
- !ruby/object:Gem::Version
|
73
|
-
version: 5.x
|
61
|
+
version: 5.0.1.x
|
74
62
|
type: :development
|
75
63
|
prerelease: false
|
76
64
|
version_requirements: !ruby/object:Gem::Requirement
|
77
65
|
requirements:
|
78
|
-
- - "
|
66
|
+
- - ">"
|
79
67
|
- !ruby/object:Gem::Version
|
80
|
-
version: 5.x
|
68
|
+
version: 5.0.1.x
|
81
69
|
- !ruby/object:Gem::Dependency
|
82
70
|
name: sqlite3
|
83
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,59 +167,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
167
|
version: '0'
|
180
168
|
requirements: []
|
181
169
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.6
|
170
|
+
rubygems_version: 2.7.6
|
183
171
|
signing_key:
|
184
172
|
specification_version: 4
|
185
173
|
summary: Extracting `assigns` and `assert_template` from ActionDispatch.
|
186
174
|
test_files:
|
187
|
-
- test/controllers/assigns_test.rb
|
188
|
-
- test/controllers/template_assertions_test.rb
|
189
|
-
- test/dummy/app/controllers/assigns_controller.rb
|
190
|
-
- test/dummy/app/controllers/template_assertions_controller.rb
|
191
175
|
- test/dummy/app/controllers/view_assigns_controller.rb
|
192
|
-
- test/dummy/app/
|
193
|
-
- test/dummy/app/
|
194
|
-
- test/dummy/app/views/
|
195
|
-
- test/dummy/app/views/test/
|
196
|
-
- test/dummy/app/views/test/_layout_for_partial.html.erb
|
176
|
+
- test/dummy/app/controllers/template_assertions_controller.rb
|
177
|
+
- test/dummy/app/controllers/assigns_controller.rb
|
178
|
+
- test/dummy/app/views/test/hello_world_with_partial.html.erb
|
179
|
+
- test/dummy/app/views/test/hello_world.html.erb
|
197
180
|
- test/dummy/app/views/test/_partial.html.erb
|
198
|
-
- test/dummy/app/views/test/_partial_for_use_in_layout.html.erb
|
199
181
|
- test/dummy/app/views/test/calling_partial_with_layout.html.erb
|
182
|
+
- test/dummy/app/views/test/render_two_partials.html.erb
|
183
|
+
- test/dummy/app/views/test/_partial_for_use_in_layout.html.erb
|
184
|
+
- test/dummy/app/views/test/_directory/_partial_with_locales.html.erb
|
185
|
+
- test/dummy/app/views/test/_layout_for_partial.html.erb
|
200
186
|
- test/dummy/app/views/test/hello/hello.html.erb
|
201
|
-
- test/dummy/app/views/test/hello_world.html.erb
|
202
|
-
- test/dummy/app/views/test/hello_world_with_partial.html.erb
|
203
187
|
- test/dummy/app/views/test/render_partial_inside_directory.html.erb
|
204
|
-
- test/dummy/app/views/
|
205
|
-
- test/dummy/
|
206
|
-
- test/dummy/
|
188
|
+
- test/dummy/app/views/layouts/application.html.erb
|
189
|
+
- test/dummy/app/views/layouts/standard.html.erb
|
190
|
+
- test/dummy/app/helpers/application_helper.rb
|
207
191
|
- test/dummy/bin/rake
|
208
192
|
- test/dummy/bin/setup
|
209
|
-
- test/dummy/
|
210
|
-
- test/dummy/
|
211
|
-
- test/dummy/config/
|
212
|
-
- test/dummy/config/
|
213
|
-
- test/dummy/config/
|
193
|
+
- test/dummy/bin/bundle
|
194
|
+
- test/dummy/bin/rails
|
195
|
+
- test/dummy/config/secrets.yml
|
196
|
+
- test/dummy/config/routes.rb
|
197
|
+
- test/dummy/config/locales/en.yml
|
214
198
|
- test/dummy/config/environments/production.rb
|
199
|
+
- test/dummy/config/environments/development.rb
|
215
200
|
- test/dummy/config/environments/test.rb
|
216
|
-
- test/dummy/config/
|
201
|
+
- test/dummy/config/environment.rb
|
202
|
+
- test/dummy/config/application.rb
|
203
|
+
- test/dummy/config/database.yml
|
204
|
+
- test/dummy/config/boot.rb
|
217
205
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
218
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
219
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
220
|
-
- test/dummy/config/initializers/inflections.rb
|
221
206
|
- test/dummy/config/initializers/mime_types.rb
|
207
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
222
208
|
- test/dummy/config/initializers/session_store.rb
|
223
209
|
- test/dummy/config/initializers/wrap_parameters.rb
|
224
|
-
- test/dummy/config/
|
225
|
-
- test/dummy/config/
|
226
|
-
- test/dummy/config/
|
210
|
+
- test/dummy/config/initializers/assets.rb
|
211
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
212
|
+
- test/dummy/config/initializers/inflections.rb
|
227
213
|
- test/dummy/config.ru
|
228
|
-
- test/dummy/
|
229
|
-
- test/dummy/public/
|
214
|
+
- test/dummy/Rakefile
|
215
|
+
- test/dummy/public/favicon.ico
|
230
216
|
- test/dummy/public/422.html
|
231
217
|
- test/dummy/public/500.html
|
232
|
-
- test/dummy/public/
|
233
|
-
- test/dummy/
|
218
|
+
- test/dummy/public/404.html
|
219
|
+
- test/dummy/log/test.log
|
234
220
|
- test/dummy/README.rdoc
|
235
|
-
- test/helpers/template_assertions_test.rb
|
236
221
|
- test/integration/template_assertions_test.rb
|
237
222
|
- test/test_helper.rb
|
223
|
+
- test/controllers/template_assertions_test.rb
|
224
|
+
- test/controllers/assigns_test.rb
|
225
|
+
- test/helpers/template_assertions_test.rb
|