test/lib/eye/patch/settings_test.rb in eye-patch-0.5.1 vs test/lib/eye/patch/settings_test.rb in eye-patch-1.0.0
- old
+ new
@@ -1,10 +1,14 @@
+# frozen_string_literal: true
+
require_relative "../../../test_helper"
require "tempfile"
module Eye
+
module Patch
+
describe Settings do
it "evaluates the yaml as ERB" do
file = Tempfile.new("yaml")
file.write("sum: <%= 1 + 2 %>")
file.close
@@ -20,7 +24,9 @@
File.join(file.path, ".."),
Settings.new(file.path)[:working_dir],
)
end
end
+
end
+
end