Sha256: 64eef7d76f73a16d6ebc16ebac0ce195905b17b52945b444764fbd94d80ee4bd

Contents?: true

Size: 823 Bytes

Versions: 91

Compression:

Stored size: 823 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

91 entries across 91 versions & 1 rubygems

Version Path
msgr-1.1.0.1.b238 spec/support/setup.rb
msgr-1.1.0.1.b237 spec/support/setup.rb
msgr-1.1.0.1.b236 spec/support/setup.rb
msgr-1.1.0.1.b235 spec/support/setup.rb
msgr-1.1.0.1.b234 spec/support/setup.rb
msgr-1.1.0.1.b233 spec/support/setup.rb
msgr-1.1.0.1.b232 spec/support/setup.rb
msgr-1.1.0.1.b231 spec/support/setup.rb
msgr-1.1.0.1.b230 spec/support/setup.rb
msgr-1.1.0.1.b229 spec/support/setup.rb
msgr-1.1.0.1.b228 spec/support/setup.rb
msgr-1.1.0.1.b227 spec/support/setup.rb
msgr-1.1.0.1.b226 spec/support/setup.rb
msgr-1.1.0.1.b225 spec/support/setup.rb
msgr-1.1.0.1.b224 spec/support/setup.rb
msgr-1.1.0.1.b223 spec/support/setup.rb
msgr-1.1.0.1.b222 spec/support/setup.rb
msgr-1.1.0.1.b221 spec/support/setup.rb
msgr-1.1.0.1.b220 spec/support/setup.rb
msgr-1.1.0.1.b218 spec/support/setup.rb