Permalink
Browse files

use local rspec command in cukes

  • Loading branch information...
dchelimsky committed Mar 2, 2010
1 parent 8ed0e40 commit c550dc838e09d9dc4da71edffda1caf3f3b1febf
Showing with 15 additions and 1 deletion.
  1. +15 −1 features/support/env.rb
View
@@ -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.