Sha256: 9dc0bd5679bc44b86148a95f02b2de32aa0b3e2852390f5fc4bab20290611ed9

Contents?: true

Size: 822 Bytes

Versions: 24

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true
require 'bundler'

# Somewhere between
#   `ruby -w -W2 -S rspec ...`
# and the rspec executable `bundle/setup` is required or
# `Bundler.setup` without groups called. This will let Bundler
# load ALL gems from ALL groups. This results in leaking
# gems only for rails integration tests into msgr testing
# environment.
#
# This file will be required by ruby on the commandline before
# everything else can kick in. The code snippet below will
# patch bundler to just ignore `setup` calls without
# specified groups. All test helper will explicit call
# `Bundler.setup` with required test groups.

module Bundler
  class << self
    alias old_setup setup
    def setup(*groups)
      old_setup(*groups) unless groups.empty?
    end
  end
end

# Only load default group
Bundler.setup :default

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
msgr-0.15.2.1.b157 spec/support/setup.rb
msgr-0.15.2.1.b156 spec/support/setup.rb
msgr-0.15.2.1.b155 spec/support/setup.rb
msgr-0.15.2.1.b154 spec/support/setup.rb
msgr-0.15.2.1.b152 spec/support/setup.rb
msgr-0.15.1.1.b151 spec/support/setup.rb
msgr-0.15.2 spec/support/setup.rb
msgr-0.15.1.1.b150 spec/support/setup.rb
msgr-0.15.1.1.b146 spec/support/setup.rb
msgr-0.15.1.1.b145 spec/support/setup.rb
msgr-0.15.1.1.b144 spec/support/setup.rb
msgr-0.15.1.1.b143 spec/support/setup.rb
msgr-0.15.1.1.b141 spec/support/setup.rb
msgr-0.15.0.1.b140 spec/support/setup.rb
msgr-0.15.1 spec/support/setup.rb
msgr-0.15.0.1.b139 spec/support/setup.rb
msgr-0.15.0.1.b136 spec/support/setup.rb
msgr-0.15.0.1.b135 spec/support/setup.rb
msgr-0.15.0.1.b134 spec/support/setup.rb
msgr-0.15.0.1.b131 spec/support/setup.rb