lib/tap/test/utils.rb in tap-test-0.1.0 vs lib/tap/test/utils.rb in tap-test-0.2.0

- old
+ new

@@ -1,9 +1,9 @@ require 'tap/root' require 'fileutils' require 'tempfile' -require 'tap/support/templater' +require 'tap/templater' module Tap module Test module Utils @@ -118,11 +118,11 @@ FileUtils.mv(tempfile.path, source) end end end - # Uses a Tap::Support::Templater to template and replace the contents of path, + # Uses a Tap::Templater to template and replace the contents of path, # for the duration of the block. The attributes will be available in the # template context. def template(paths, attributes={}, tempdir=Dir::tmpdir) mapped_paths = [] begin @@ -133,10 +133,10 @@ FileUtils.cp(path, tempfile.path) # template the source file content = File.read(path) File.open(path, "wb") do |file| - file << Support::Templater.new(content, attributes).build + file << Templater.new(content, attributes).build end mapped_paths << [path, tempfile] end