spec/support/rails5/app.rb in influxdb-rails-0.4.999 vs spec/support/rails5/app.rb in influxdb-rails-1.0.0.beta1
- old
+ new
@@ -1,10 +1,11 @@
-require 'action_controller/railtie'
+require "action_controller/railtie"
app = Class.new(Rails::Application)
-app.config.secret_token = '1234567890abcdef1234567890abcdef'
-app.config.session_store :cookie_store, :key => '_myapp_session'
+app.config.secret_key_base = "1234567890abcdef1234567890abcdef"
+app.config.secret_token = "1234567890abcdef1234567890abcdef"
+app.config.session_store :cookie_store, key: "_myapp_session"
app.config.active_support.deprecation = :log
app.config.eager_load = false
app.config.root = File.dirname(__FILE__)
Rails.backtrace_cleaner.remove_silencers!
app.initialize!
@@ -16,10 +17,15 @@
InfluxDB::Rails.configure do |config|
end
class ApplicationController < ActionController::Base; end
class WidgetsController < ApplicationController
- def index; head 200; end
- def new; return 1/0; end
+ def index
+ head 200
+ end
+
+ def new
+ 1 / 0
+ end
end
Object.const_set(:ApplicationHelper, Module.new)