Skip to content

Commit

Permalink
Delete render file tests
Browse files Browse the repository at this point in the history
These tests are now failing because of changes made in
rails/rails#35688. This causes the instrumentation for `@_files` to not
get run, but also don't think this should be supported since that
instrumentation is for templates and now files are just rendered as
files not as templates.
  • Loading branch information
eileencodes committed May 4, 2020
1 parent 54f2240 commit 9acf9b7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/controllers/template_assertions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ def test_with_partial
assert_template partial: '_partial'
end

def test_file_with_absolute_path_success
get :render_file_absolute_path
assert_template file: File.expand_path('../../dummy/README.rdoc', __FILE__)
end

def test_file_with_relative_path_success
get :render_file_relative_path
assert_template file: 'README.rdoc'
Expand All @@ -28,12 +23,6 @@ def test_with_file_failure
assert_raise(ActiveSupport::TestCase::Assertion) do
assert_template :file => 'test/hello_world'
end

get :render_file_absolute_path

assert_raise(ActiveSupport::TestCase::Assertion) do
assert_template file: nil
end
end

def test_with_nil_passes_when_no_template_rendered
Expand Down

0 comments on commit 9acf9b7

Please sign in to comment.