0
0
Fork 0

Overwrite old statuses with reblogs in PrecomputeFeedService (#3984)

This commit is contained in:
Akihiko Odaki (@fn_aki@pawoo.net) 2017-06-28 21:50:23 +09:00 committed by Eugen Rochko
parent fb421a1f46
commit 7d8e3721ae
5 changed files with 19 additions and 10 deletions

View file

@ -13,6 +13,7 @@ Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
ActiveRecord::Migration.maintain_test_schema!
WebMock.disable_net_connect!
Redis.current = Redis::Namespace.new("mastodon_test#{ENV['TEST_ENV_NUMBER']}", redis: Redis.current)
Sidekiq::Testing.inline!
Sidekiq::Logging.logger = nil
@ -43,6 +44,11 @@ RSpec.configure do |config|
https = ENV['LOCAL_HTTPS'] == 'true'
Capybara.app_host = "http#{https ? 's' : ''}://#{ENV.fetch('LOCAL_DOMAIN')}"
end
config.after :each do
keys = Redis.current.keys
Redis.current.del(keys) if keys.any?
end
end
RSpec::Sidekiq.configure do |config|