Sha256: 90acbca99e1672a22bd1e127e9902f498bbbe4a4e405192dab0aac13f5b1d210

Contents?: true

Size: 794 Bytes

Versions: 32

Compression:

Stored size: 794 Bytes

Contents

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

32 entries across 32 versions & 1 rubygems

Version Path
msgr-0.14.1.1.b125 spec/support/setup.rb
msgr-0.14.1.1.b124 spec/support/setup.rb
msgr-0.14.1.1.b112 spec/support/setup.rb
msgr-0.14.1.1.b111 spec/support/setup.rb
msgr-0.14.1.1.b110 spec/support/setup.rb
msgr-0.14.1 spec/support/setup.rb
msgr-0.14.0 spec/support/setup.rb
msgr-0.13.0 spec/support/setup.rb
msgr-0.12.3 spec/support/setup.rb
msgr-0.12.2 spec/support/setup.rb
msgr-0.12.1 spec/support/setup.rb
msgr-0.12.0 spec/support/setup.rb
msgr-0.11.1 spec/support/setup.rb
msgr-0.11.0 spec/support/setup.rb
msgr-0.11.0.rc3 spec/support/setup.rb
msgr-0.11.0.rc2 spec/support/setup.rb
msgr-0.11.0.rc1 spec/support/setup.rb
msgr-0.10.2 spec/support/setup.rb
msgr-0.10.1 spec/support/setup.rb
msgr-0.10.0 spec/support/setup.rb