Skip to content

Commit

Permalink
run spec/console with bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Oct 12, 2010
1 parent b6e4e28 commit 22fe383
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions spec/console
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env ruby
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = %w[rubygems irb/completion console_fixtures]

args = libs.map { |lib| ['-r', lib] }.flatten
args << '--simple-prompt'

ENV['RUBYLIB'] = 'lib:spec'
exec irb, *args
opts = %w[--simple-prompt -rirb/completion -rconsole_fixtures]
exec 'bundle', 'exec', irb, '-Ilib:spec', *opts

0 comments on commit 22fe383

Please sign in to comment.