diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-03-22 00:46:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-22 00:46:38 -0400 |
commit | 0a0f115031b64b5335fa88543c40df4194dfb428 (patch) | |
tree | 9ae18f391a8d31fd836801cb32a257682dd9cc14 /actionview/test/template/test_case_test.rb | |
parent | c9fe12fe8e7b0e90352843c8ca4e5128e542157e (diff) | |
parent | f35631d46610ac62d57743bdb5f71a0039b1cf78 (diff) | |
download | rails-0a0f115031b64b5335fa88543c40df4194dfb428.tar.gz rails-0a0f115031b64b5335fa88543c40df4194dfb428.tar.bz2 rails-0a0f115031b64b5335fa88543c40df4194dfb428.zip |
Merge pull request #35695 from jhawthorn/render_template
Prefer render template: over render file: in tests
Diffstat (limited to 'actionview/test/template/test_case_test.rb')
-rw-r--r-- | actionview/test/template/test_case_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/test_case_test.rb b/actionview/test/template/test_case_test.rb index c89aff9c9d..0b2a2a9911 100644 --- a/actionview/test/template/test_case_test.rb +++ b/actionview/test/template/test_case_test.rb @@ -284,7 +284,7 @@ module ActionView @controller.controller_path = "test" @customers = [DeveloperStruct.new("Eloy"), DeveloperStruct.new("Manfred")] - assert_match(/Hello: EloyHello: Manfred/, render(file: "test/list")) + assert_match(/Hello: EloyHello: Manfred/, render(template: "test/list")) end test "is able to render partials from templates and also use instance variables after view has been referenced" do @@ -293,7 +293,7 @@ module ActionView view @customers = [DeveloperStruct.new("Eloy"), DeveloperStruct.new("Manfred")] - assert_match(/Hello: EloyHello: Manfred/, render(file: "test/list")) + assert_match(/Hello: EloyHello: Manfred/, render(template: "test/list")) end test "is able to use helpers that depend on the view flow" do |