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:
parent
e11c83341c
commit
cb5be1fe8f
15 changed files with 40 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue