Files
growstuff/spec/support/wikidata.rb
T
Brenda Wallace 10bf0a4f6c Add coding agent guidelines and improve feature spec logging
- Create AGENTS.md with layout advice for coding agents.
- Update timeline feature spec to use rack_test driver and improve context descriptions.
- Enhance spec_helper to log feature spec execution time.
- Add support for Wikidata service mocking in specs.
2026-10-14 09:19:48 +13:00

10 lines
337 B
Ruby

# frozen_string_literal: true
# Saving a garden with a location looks it up on Wikidata, a real HTTPS request
# of about half a second each. Specs don't need the answer, so no lookup is made.
RSpec.configure do |config|
config.before do
allow(WikidataService).to receive_messages(find_wikidata_id: nil, fetch_temps: {})
end
end