Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
This commit is contained in:
parent
da4b675aca
commit
85b00d19b8
15 changed files with 49 additions and 35 deletions
|
@ -9,6 +9,7 @@ require 'webmock/rspec'
|
|||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
WebMock.disable_net_connect!
|
||||
Sidekiq::Testing.inline!
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
||||
|
@ -20,6 +21,10 @@ RSpec.configure do |config|
|
|||
config.include Devise::TestHelpers, type: :view
|
||||
end
|
||||
|
||||
RSpec::Sidekiq.configure do |config|
|
||||
config.warn_when_jobs_not_processed_by_sidekiq = false
|
||||
end
|
||||
|
||||
def request_fixture(name)
|
||||
File.read(File.join(Rails.root, 'spec', 'fixtures', 'requests', name))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue