summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-08 11:00:40 +0200
committerAzul <azul@leap.se>2014-07-14 10:49:39 +0200
commit303ec07901af3798efc873cbe050aa5cb4ba7655 (patch)
tree4c9a2d33d2bf1b24233d115e74368a533acf7666 /script
parent4dbfdf30c3235eb19e4f0ad959f65125ed18b39a (diff)
use cucumber; initial ConfigsController
Diffstat (limited to 'script')
-rwxr-xr-xscript/cucumber10
1 files changed, 10 insertions, 0 deletions
diff --git a/script/cucumber b/script/cucumber
new file mode 100755
index 0000000..7fa5c92
--- /dev/null
+++ b/script/cucumber
@@ -0,0 +1,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