From a074e33c5d149680a6153f3c69d586e1de4d5fc7 Mon Sep 17 00:00:00 2001 From: David Rice Date: Thu, 11 Apr 2024 23:49:34 +0100 Subject: [PATCH] build: move test JSON file output to spec/artefacts/test.json --- .gitignore | 5 ++--- spec/artefacts/.gitkeep | 0 spec/atco_spec.rb | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 spec/artefacts/.gitkeep diff --git a/.gitignore b/.gitignore index a9f6891..a96b0cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ *.DS_Store -test.output -fixture.output pkg/* checksums/* -*.gem \ No newline at end of file +*.gem +spec/artefacts/test.json \ No newline at end of file diff --git a/spec/artefacts/.gitkeep b/spec/artefacts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/spec/atco_spec.rb b/spec/atco_spec.rb index 28b4001..886f376 100644 --- a/spec/atco_spec.rb +++ b/spec/atco_spec.rb @@ -165,7 +165,7 @@ end it "should output file as JSON" do - output = File.join(File.dirname(__FILE__), "test.output") + output = File.join(File.dirname(__FILE__), "artefacts", "test.json") File.open(output, "w+") do |f| f.flush f.write(JSON.pretty_generate(@atco))