spec/support/logger_helper.rb in howitzer-1.1.1 vs spec/support/logger_helper.rb in howitzer-2.0.0
- old
+ new
@@ -1,12 +1,13 @@
-module LoggerHelper
- def read_file(file)
- path = File.expand_path(file, __FILE__)
- IO.read(path)
- end
+module Howitzer
+ module LoggerHelper
+ def read_file(file)
+ path = File.expand_path(file, __FILE__)
+ IO.read(path)
+ end
- def clear_file(file)
- path = File.expand_path(file, __FILE__)
- File.open(path, "w"){ }
+ def clear_file(file)
+ path = File.expand_path(file, __FILE__)
+ File.open(path, 'w') {}
+ end
end
end
-