Skip to content

Commit

Permalink
[Refactor] Remove unused from tests for @rails/ujs
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes committed Oct 10, 2023
1 parent ce2eb72 commit 7365897
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions actionview/test/ujs/server.rb
Expand Up @@ -35,27 +35,7 @@ class Server < Rails::Application
end
end

module TestsHelper
def test_to(*names)
names = names.map { |name| "/test/#{name}.js" }
names = %w[/vendor/qunit.js /test/settings.js] + names

capture do
names.each do |name|
concat(javascript_include_tag(name))
end
end
end
end

class TestsController < ActionController::Base
helper TestsHelper
layout "application"

def index
render :index
end

def echo
data = { params: params.to_unsafe_h }.update(request.env)

Expand Down

0 comments on commit 7365897

Please sign in to comment.