be aware of spaces in paths. fixed #79

This commit is contained in:
Thomas Reynolds 2011-07-22 11:43:00 -07:00
parent cdebfa4587
commit 7b333140a1
11 changed files with 24 additions and 13 deletions

View file

@ -17,6 +17,11 @@ Given /^cleanup built test app$/ do
FileUtils.rm_rf(target)
end
Then /^"([^"]*)" should exist$/ do |target_file,|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app", "build", target_file)
File.exists?(target).should be_true
end
Then /^"([^"]*)" should exist and include "([^"]*)"$/ do |target_file, expected|
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app", "build", target_file)
File.exists?(target).should be_true