From a2419c8cd220b930a40dca631ec14b43a0c78715 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Mon, 25 Jan 2016 14:23:46 -0800 Subject: [PATCH] Fix for rspec-rails and rails 4.2.5.1 Fixes NoMethodError: Undefined Method `cache` This can be removed as soon as doing so doesn't cause test errors. See https://github.com/rspec/rspec-rails/issues/1532 --- frontend/spec/support/rspec_rails_4_2_5_1.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 frontend/spec/support/rspec_rails_4_2_5_1.rb diff --git a/frontend/spec/support/rspec_rails_4_2_5_1.rb b/frontend/spec/support/rspec_rails_4_2_5_1.rb new file mode 100644 index 00000000000..ac484228662 --- /dev/null +++ b/frontend/spec/support/rspec_rails_4_2_5_1.rb @@ -0,0 +1,7 @@ +# Fix for rspec-rails and rails 4.2.5.1 +# This can be removed as soon as doing so doesn't cause test errors. +# See https://github.com/rspec/rspec-rails/issues/1532 + +RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do + alias_method :find_all_anywhere, :find_all +end