Skip to content

Commit

Permalink
these may change
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Mar 5, 2024
1 parent e269970 commit a58b1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/show_sunlight_hours_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

before(:each) do
stub_request(:get, "https://api.sunrise-sunset.org/json")
.with(query: { formatted: 0, lat: 42.3723008, lng: -71.10656 })
.with(query: { formatted: 0, lat: ShowSunlightHours::LAT, lng: ShowSunlightHours::LONG })
.to_return(status: 200, body: body, headers: {'Content-Type' => 'application/json'})

end
Expand All @@ -22,7 +22,7 @@
expect(subject[:sunrise]).to be_instance_of(Time)
expect(
a_request(:get, "https://api.sunrise-sunset.org/json")
.with(query: { formatted: 0, lat: 42.3723008, lng: -71.10656 })
.with(query: { formatted: 0, lat: ShowSunlightHours::LAT, lng: ShowSunlightHours::LONG })
).to have_been_made
end
end
Expand Down

0 comments on commit a58b1f8

Please sign in to comment.