Skip to content

Commit

Permalink
expand paths
Browse files Browse the repository at this point in the history
  • Loading branch information
clayallsopp committed Feb 6, 2014
1 parent 35b0732 commit b5899c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/motion-screenspecs.rb
Expand Up @@ -107,9 +107,9 @@ def do_GET (request, response)
(screenshot_class = request.query['screenshot_class'])
screenshot_path.gsub!("file://", "")
screenshots_root = Motion::Screenspecs.screenshots_root(screenshot_class)
expectation_path = File.join(screenshots_root, "expectations", "#{title}.png")
result_path = File.join(screenshots_root, "results", "#{title}.png")
failure_path = File.join(screenshots_root, "failures", "#{title}.png")
expectation_path = File.expand_path(File.join(screenshots_root, "expectations", "#{title}.png"))
result_path = File.expand_path(File.join(screenshots_root, "results", "#{title}.png"))
failure_path = File.expand_path(File.join(screenshots_root, "failures", "#{title}.png"))
FileUtils.mkdir_p(File.dirname(failure_path))
FileUtils.mkdir_p(File.dirname(result_path))

Expand Down

0 comments on commit b5899c2

Please sign in to comment.