Skip to content
This repository
Browse code

use local rspec command in cukes

  • Loading branch information...
commit c550dc838e09d9dc4da71edffda1caf3f3b1febf 1 parent 8ed0e40
David Chelimsky authored March 01, 2010

Showing 1 changed file with 15 additions and 1 deletion. Show diff stats Hide diff stats

  1. 16  features/support/env.rb
16  features/support/env.rb
... ...
@@ -1,2 +1,16 @@
1  
-require 'aruba'
  1
+$LOAD_PATH << File.expand_path("../../../../rspec-expectations/lib", __FILE__)
2 2
 require 'rspec/expectations'
  3
+require 'aruba'
  4
+
  5
+module ArubaOverrides
  6
+  def detect_ruby_script(cmd)
  7
+    if cmd =~ /^rspec /
  8
+      "ruby -I../../lib -S ../../bin/#{cmd}"
  9
+    else
  10
+      super(cmd)
  11
+    end
  12
+  end
  13
+end
  14
+
  15
+World(ArubaOverrides)
  16
+

0 notes on commit c550dc8

Please sign in to comment.
Something went wrong with that request. Please try again.