23 lines
471 B
Ruby
23 lines
471 B
Ruby
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
|