Created
December 15, 2011 14:47
-
-
Save aledalgrande/1481341 to your computer and use it in GitHub Desktop.
My culerity conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# env.rb | |
require 'bbc-cucumber-steps' | |
require 'capybara/cucumber' | |
require 'culerity' | |
require 'capybara/culerity' | |
require 'ruby-debug' | |
Culerity.jruby_invocation = File.expand_path("~/.rvm/bin/celerity_jruby") | |
Capybara.register_driver :culerity do |app| | |
Capybara::Driver::Culerity.new(app) | |
end | |
Capybara.javascript_driver = :culerity | |
# culerity-hooks.rb | |
Before("@culerity,@celerity,@javascript") do |scenario| | |
unless @original_path && @rvm_jruby_path | |
@original_path = ENV['PATH'] | |
@rvm_jruby_path = "#{`dirname "$(readlink "$(which celerity_jruby)")"`.strip}:" | |
end | |
ENV['PATH'] = @rvm_jruby_path | |
end | |
After("@culerity,@celerity,@javascript") do |scenario| | |
ENV["PATH"] = @original_path | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment