Skip to content

Commit

Permalink
spec: move fixtures level up (#8)
Browse files Browse the repository at this point in the history
* examples: fix printout

* spec: move fixtures level up
  • Loading branch information
q9f authored Dec 23, 2024
1 parent 1807238 commit 6618b6b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/api
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Update available star systems from swagger API (Phase 5)
### curl https://blockchain-gateway-stillness.live.tech.evefrontier.com/solarsystems -o ./spec/fixtures/stars_phase5.json
### curl https://blockchain-gateway-stillness.live.tech.evefrontier.com/solarsystems -o ./fixtures/stars_phase5.json

# Update available star systems from swagger API (Phase 6)
curl https://blockchain-gateway-nova.nursery.reitnorf.com/solarsystems -o ./spec/fixtures/stars_closed_alpha.json
curl https://blockchain-gateway-nova.nursery.reitnorf.com/solarsystems -o ./fixtures/stars_closed_alpha.json
2 changes: 1 addition & 1 deletion examples/distance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ALL_STARS = {}

# Read star data (locally or from API)
stars_closed_alpha = File.read "./spec/fixtures/stars_closed_alpha.json"
stars_closed_alpha = File.read "./fixtures/stars_closed_alpha.json"
stars_closed_alpha = JSON.parse stars_closed_alpha

# Create all star system objects with coordinates
Expand Down
2 changes: 1 addition & 1 deletion examples/pathfinder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
UNIVERSE_GRAPH = Graph.new

# Read star data (locally or from API)
stars_closed_alpha = File.read "./spec/fixtures/stars_closed_alpha.json"
stars_closed_alpha = File.read "./fixtures/stars_closed_alpha.json"
stars_closed_alpha = JSON.parse stars_closed_alpha

# Create all star system objects with coordinates
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/frontier/coords_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "spec_helper"

describe Coords do
let(:stars_phase5_file) { File.read "spec/fixtures/stars_phase5.json" }
let(:stars_phase5_file) { File.read "./fixtures/stars_phase5.json" }
subject(:stars_phase5) { JSON.parse stars_phase5_file }

it "can map basic coordinates" do
Expand Down
6 changes: 3 additions & 3 deletions spec/frontier/star_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
require "spec_helper"

describe Star do
let(:stars_phase5_file) { File.read "spec/fixtures/stars_phase5.json" }
let(:stars_phase5_file) { File.read "./fixtures/stars_phase5.json" }
subject(:stars_phase5) { JSON.parse stars_phase5_file }
let(:stars_closed_alpha_file) { File.read "spec/fixtures/stars_closed_alpha.json" }
let(:stars_closed_alpha_file) { File.read "./fixtures/stars_closed_alpha.json" }
subject(:stars_closed_alpha) { JSON.parse stars_closed_alpha_file }
let(:mapping_closed_alpha_file) { File.read "spec/fixtures/mapping_closed_alpha.json" }
let(:mapping_closed_alpha_file) { File.read "./fixtures/mapping_closed_alpha.json" }
subject(:mapping_closed_alpha) { JSON.parse mapping_closed_alpha_file }

it "can create a generic star system" do
Expand Down

0 comments on commit 6618b6b

Please sign in to comment.