Permalink
Browse files

Fix bug for tests in Ruby 1.8.7

  • Loading branch information...
1 parent 2424176 commit 822210b79bd20a91420ee1c12cfcc02e2add94b5 @mattwynne mattwynne committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/aruba/api_spec.rb
View
@@ -22,7 +22,7 @@ def announce_or_puts(*args)
@directory_name = 'test_dir'
@directory_path = File.join(@aruba.current_dir, @directory_name)
- Dir.mkdir(@directory_path) if File.exist?(@directory_path)
+ Dir.mkdir(@directory_path) unless File.exist?(@directory_path)
end
describe 'current_dir' do

0 comments on commit 822210b

Please sign in to comment.