summaryrefslogtreecommitdiff
path: root/spec/unit/resource/inspec_input_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/inspec_input_spec.rb')
-rw-r--r--spec/unit/resource/inspec_input_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/resource/inspec_input_spec.rb b/spec/unit/resource/inspec_input_spec.rb
index 4acdfd60a9..033147a729 100644
--- a/spec/unit/resource/inspec_input_spec.rb
+++ b/spec/unit/resource/inspec_input_spec.rb
@@ -153,7 +153,7 @@ ssh_custom_path = "/whatever2"
context "with a input in a file" do
it "loads a YAML file" do
- tempfile = Tempfile.new(["spec-compliance-test", ".yaml"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".yaml"])
tempfile.write input_yaml
tempfile.close
resource.name tempfile.path
@@ -169,7 +169,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a YAML file in a source attribute" do
- tempfile = Tempfile.new(["spec-compliance-test", ".yaml"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".yaml"])
tempfile.write input_yaml
tempfile.close
resource.name "my-resource-name"
@@ -186,7 +186,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a YML file" do
- tempfile = Tempfile.new(["spec-compliance-test", ".yml"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".yml"])
tempfile.write input_yaml
tempfile.close
resource.name tempfile.path
@@ -202,7 +202,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a YML file using the source attribute" do
- tempfile = Tempfile.new(["spec-compliance-test", ".yml"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".yml"])
tempfile.write input_yaml
tempfile.close
resource.name "my-resource-name"
@@ -219,7 +219,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a JSON file" do
- tempfile = Tempfile.new(["spec-compliance-test", ".json"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".json"])
tempfile.write input_json
tempfile.close
resource.name tempfile.path
@@ -235,7 +235,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a JSON file using the source attribute" do
- tempfile = Tempfile.new(["spec-compliance-test", ".json"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".json"])
tempfile.write input_json
tempfile.close
resource.name "my-resource-name"
@@ -252,7 +252,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a TOML file" do
- tempfile = Tempfile.new(["spec-compliance-test", ".toml"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".toml"])
tempfile.write input_toml
tempfile.close
resource.name tempfile.path
@@ -268,7 +268,7 @@ ssh_custom_path = "/whatever2"
end
it "loads a TOML file using the source attribute" do
- tempfile = Tempfile.new(["spec-compliance-test", ".toml"])
+ tempfile = Tempfile.create(["spec-compliance-test", ".toml"])
tempfile.write input_toml
tempfile.close
resource.name "my-resource-name"