summaryrefslogtreecommitdiff
path: root/script/cucumber
blob: 7fa5c9208675ca06c02b2d3a3279f17623d1cbc9 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
if vendored_cucumber_bin
  load File.expand_path(vendored_cucumber_bin)
else
  require 'rubygems' unless ENV['NO_RUBYGEMS']
  require 'cucumber'
  load Cucumber::BINARY
end