From a58b1f8fb1cd6f747b755bdc11d75170cc314218 Mon Sep 17 00:00:00 2001 From: Xero Date: Mon, 4 Mar 2024 22:15:22 -0500 Subject: [PATCH] these may change --- spec/lib/show_sunlight_hours_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/show_sunlight_hours_spec.rb b/spec/lib/show_sunlight_hours_spec.rb index e767f3d..a9496a5 100644 --- a/spec/lib/show_sunlight_hours_spec.rb +++ b/spec/lib/show_sunlight_hours_spec.rb @@ -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 @@ -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