spec/support/rails4/app.rb in influxdb-rails-1.0.0.beta3 vs spec/support/rails4/app.rb in influxdb-rails-1.0.0.beta4
- old
+ new
@@ -30,9 +30,13 @@
class Widget < ActiveRecord::Base; end
class ApplicationController < ActionController::Base; end
class WidgetsController < ApplicationController
prepend_view_path File.join(__dir__, "..", "views")
+ before_action do
+ InfluxDB::Rails.current.values = { key: :value }
+ end
+
def index
Widget.create!(title: "test")
end
def new