Permalink
Browse files

Prefix rspec w/ 'bundle exec' when running aruba-driven cukes

  • Loading branch information...
1 parent 60ffa4b commit cb5c0f5fa4d5f19c76c1e0ab2cd5f4538be02ede @dchelimsky dchelimsky committed Apr 3, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 features/support/env.rb
View
@@ -1,6 +1,14 @@
require 'aruba/cucumber'
require 'webrat'
+module ArubaExt
+ def run(cmd)
+ super(cmd =~ /^rspec/ ? "bundle exec #{cmd}" : cmd)
+ end
+end
+
+World(ArubaExt)
+
Before do
@aruba_timeout_seconds = 10
unset_bundler_env_vars

0 comments on commit cb5c0f5

Please sign in to comment.