Skip to content

Commit

Permalink
build: move test JSON file output to spec/artefacts/test.json
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjrice committed Apr 11, 2024
1 parent dc38f61 commit a074e33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.DS_Store
test.output
fixture.output
pkg/*
checksums/*
*.gem
*.gem
spec/artefacts/test.json
Empty file added spec/artefacts/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion spec/atco_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a074e33

Please sign in to comment.