summaryrefslogtreecommitdiff
path: root/test/file_content.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/file_content.rb')
-rw-r--r--test/file_content.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/file_content.rb b/test/file_content.rb
index 0d0ac21..abc0fd8 100644
--- a/test/file_content.rb
+++ b/test/file_content.rb
@@ -1,11 +1,9 @@
module FileContent
-
def file_content(filename)
(@file_contents ||= {})[filename] ||= File.read(file_path(filename))
end
def file_path(filename)
- "%s/files/%s" % [File.dirname(__FILE__), filename]
+ format('%s/files/%s', File.dirname(__FILE__), filename)
end
-
end