Skip to content

Instantly share code, notes, and snippets.

@mikesutton
Created August 4, 2013 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikesutton/6150863 to your computer and use it in GitHub Desktop.
Save mikesutton/6150863 to your computer and use it in GitHub Desktop.
requiring json in the cucumber script fixes it.
#!/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 'json'
require 'cucumber'
load Cucumber::BINARY
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment