Sha256: 4177b987ff31e3d91344327a725c014788510ddb41159667a0689fefc967e5fc

Contents?: true

Size: 752 Bytes

Versions: 19

Compression:

Stored size: 752 Bytes

Contents

##############################################################################
#                               Bullet Plugin
##############################################################################

begin
  require 'bullet'

  Bullet.enable        = true
  Bullet.bullet_logger = true
  Bullet.raise         = true

  if defined?(Chamber) && Chamber.env.bugsnag
    Bullet.bugsnag     = { api_key: Chamber.env.bugsnag.api_key }
  end

  RSpec.configure do |config|
    config.before(:each) do
      Bullet.start_request if Bullet.enable?
    end

    config.after(:each) do
      if Bullet.enable?
        Bullet.perform_out_of_channel_notifications if Bullet.notification?
        Bullet.end_request
      end
    end
  end
rescue LoadError
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rspectacular-0.50.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.49.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.48.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.47.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.46.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.45.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.44.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.43.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.42.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.41.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.40.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.39.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.38.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.37.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.36.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.35.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.34.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.33.0 lib/rspectacular/plugins/bullet.rb
rspectacular-0.31.0 lib/rspectacular/plugins/bullet.rb