Skip to content

Commit

Permalink
use local rspec command in cukes
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Mar 2, 2010
1 parent 8ed0e40 commit c550dc8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion features/support/env.rb
@@ -1,2 +1,16 @@
require 'aruba'
$LOAD_PATH << File.expand_path("../../../../rspec-expectations/lib", __FILE__)
require 'rspec/expectations'
require 'aruba'

module ArubaOverrides
def detect_ruby_script(cmd)
if cmd =~ /^rspec /
"ruby -I../../lib -S ../../bin/#{cmd}"
else
super(cmd)
end
end
end

World(ArubaOverrides)

0 comments on commit c550dc8

Please sign in to comment.