test/integration/plugin_integration_test.rb in resque-web-0.0.8 vs test/integration/plugin_integration_test.rb in resque-web-0.0.9

- old
+ new

@@ -7,11 +7,11 @@ class Engine < ::Rails::Engine isolate_namespace ResqueWeb::Plugins::ResqueWebTestPlugin end class PlugintestController < ApplicationController def index - render text: "hello from test plugin", layout: true + render html: "hello from test plugin", layout: true end end Engine.routes.draw do resources :plugintest, :only => [:index] @@ -39,14 +39,14 @@ env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials( options[:user] || user, options[:password] || password ) unless options[:auth] == false end - send(method, action, params, env) + send(method, action, params: params, env: env) - ENV["RESQUE_WEB_HTTP_BASIC_AUTH_USER"] = user - ENV["RESQUE_WEB_HTTP_BASIC_AUTH_PASSWORD"] = password - end + ENV["RESQUE_WEB_HTTP_BASIC_AUTH_USER"] = user + ENV["RESQUE_WEB_HTTP_BASIC_AUTH_PASSWORD"] = password + end setup do @routes = Engine.routes Dummy::Application.reload_routes! end