Permalink
Browse files

helper for custom app roots in specs

  • Loading branch information...
1 parent 11c116d commit 0dcbb515b3cc6c357c12762e64b7b77a30c6fb58 @hone hone committed Mar 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/support/helpers.rb
@@ -26,6 +26,10 @@ def in_app_root2(&blk)
Dir.chdir(bundled_app2, &blk)
end
+ def in_app_root_custom(root, &blk)
+ Dir.chdir(root, &blk)
+ end
+
def run(cmd, *args)
opts = args.last.is_a?(Hash) ? args.pop : {}
expect_err = opts.delete(:expect_err)

0 comments on commit 0dcbb51

Please sign in to comment.