Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Apr 11, 2024
1 parent 7f8eed8 commit c160de0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
let!(:question) { create :questionnaire_question, questionnaire: questionnaire }

before do
utility = Decidim::Map.autocomplete(organization: organization)
allow(Decidim::Map).to receive(:autocomplete).with(organization: organization).and_return(utility)
allow(utility).to receive(:builder_options).and_return(
api_key: "key1234"
)

switch_to_host(organization.host)
login_as user, scope: :user
visit questionnaire_edit_path
Expand Down

0 comments on commit c160de0

Please sign in to comment.