1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/script/console

10 lines
438 B
Text
Raw Normal View History

2009-11-04 17:00:05 -05:00
#!/usr/bin/env ruby
# File: script/console
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
2009-11-16 16:02:16 -05:00
libs << " -r #{File.dirname(__FILE__) + '/../lib/capybara.rb'}"
puts "Loading capybara gem"
2009-11-04 17:00:05 -05:00
exec "#{irb} #{libs} --simple-prompt"