2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

Upgrade rspec to 3.4.0.

This commit is contained in:
Guo Xiang Tan 2016-05-30 11:38:04 +08:00
parent e11c83341c
commit cb5be1fe8f
No known key found for this signature in database
GPG key ID: 19C321C8952B0F72
15 changed files with 40 additions and 44 deletions

View file

@ -78,13 +78,6 @@ Spork.prefork do
SiteSetting.defaults[k] = v
end
# Monkey patch for NoMethodError: undefined method `cache' for nil:NilClass
# https://github.com/rspec/rspec-rails/issues/1532#issuecomment-174679485
# fixed in Rspec 3.4.1
RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator.class_eval do
alias_method :find_all_anywhere, :find_all
end
require_dependency 'site_settings/local_process_provider'
SiteSetting.provider = SiteSettings::LocalProcessProvider.new
end