From c9cb792592d9cd919e948af489eba43e4cbd9c97 Mon Sep 17 00:00:00 2001 From: "M. Simon Borg" Date: Wed, 10 May 2017 15:27:44 -0400 Subject: [PATCH] undo changes in test env that break travis builds --- tests/spec/setup_association_spec.rb | 2 +- tests/test_app/config/environments/development.rb | 2 +- tests/test_app/config/environments/test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/spec/setup_association_spec.rb b/tests/spec/setup_association_spec.rb index 93870da..644ddc3 100644 --- a/tests/spec/setup_association_spec.rb +++ b/tests/spec/setup_association_spec.rb @@ -11,7 +11,7 @@ module Impressionist # expects attr_accessible to return true # and pass 12 arguments mock. - expect(:attr_accessible, true) do |*args| + expect(:attr_accessible, true) do |args| args.size == 12 end diff --git a/tests/test_app/config/environments/development.rb b/tests/test_app/config/environments/development.rb index c69665e..b5306b3 100644 --- a/tests/test_app/config/environments/development.rb +++ b/tests/test_app/config/environments/development.rb @@ -23,7 +23,7 @@ TestApp::Application.configure do config.action_dispatch.best_standards_support = :builtin # Raise exception on mass assignment protection for Active Record models - # config.active_record.mass_assignment_sanitizer = :strict + config.active_record.mass_assignment_sanitizer = :strict # Log the query plan for queries taking more than this (works # with SQLite, MySQL, and PostgreSQL) diff --git a/tests/test_app/config/environments/test.rb b/tests/test_app/config/environments/test.rb index 6eb922c..21ec8e4 100644 --- a/tests/test_app/config/environments/test.rb +++ b/tests/test_app/config/environments/test.rb @@ -30,7 +30,7 @@ TestApp::Application.configure do config.action_mailer.delivery_method = :test # Raise exception on mass assignment protection for Active Record models - # config.active_record.mass_assignment_sanitizer = :strict + config.active_record.mass_assignment_sanitizer = :strict # Print deprecation notices to the stderr config.active_support.deprecation = :stderr