Permalink
Browse files

Avoid warning

  • Loading branch information...
cavalle committed Nov 21, 2010
1 parent 0267a63 commit f95cb1c96bb9b497660918575599d2c01314db21
Showing with 3 additions and 9 deletions.
  1. +3 −9 spec/acceptance/rspec-2/acceptance_helper.rb
@@ -57,16 +57,10 @@ def run(cmd)
end
end
- def run_spec(file_path, app_base=nil)
- if app_base
- current_dir = Dir.pwd
- Dir.chdir app_base
+ def run_spec(file_path, app_base=Dir.pwd)
+ Dir.chdir app_base do
+ run("rspec #{file_path}")
end
-
- output = run("rspec #{file_path}")
-
- Dir.chdir current_dir if app_base
- output
end
end

0 comments on commit f95cb1c

Please sign in to comment.