added 260907 version of worker toolkit
This commit is contained in:
22
worker-toolkit-flaredown/repo/backend/spec/rails_helper.rb
Normal file
22
worker-toolkit-flaredown/repo/backend/spec/rails_helper.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
require "spec_helper"
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.include Mongoid::Matchers, type: :mongoid_model
|
||||
if Bullet.enable?
|
||||
config.before(:each) do
|
||||
Bullet.start_request
|
||||
end
|
||||
|
||||
config.after(:each) do
|
||||
Bullet.perform_out_of_channel_notifications if Bullet.notification?
|
||||
Bullet.end_request
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Shoulda::Matchers.configure do |config|
|
||||
config.integrate do |with|
|
||||
with.test_framework :rspec
|
||||
with.library :rails
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user