We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56f428 commit dac6901Copy full SHA for dac6901
spec/requests/weather_controller_spec.rb
@@ -41,6 +41,7 @@
41
expect(assigns(:daily_forecast)).to eq(fetcher_result[:daily])
42
expect(assigns(:from_cache)).to be_falsey
43
expect(assigns(:error)).to be_nil
44
+ expect(Rails.cache.read("weather-fetcher-#{address.parameterize}")).to eq(fetcher_result)
45
end
46
47
it "reads result from cache if present" do
0 commit comments