From ba0e14781091ecd2152e1ff0883a9e64cf172324 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 28 Sep 2024 19:12:13 +0200 Subject: [PATCH] Fix typos --- config/initializers/devise.rb | 2 +- config/initializers/simple_form.rb | 2 +- spec/system/itineraries_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 94b0c085..edb85d58 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -306,7 +306,7 @@ # ==> Hotwire/Turbo configuration # When using Devise with Hotwire/Turbo, the http status for error responses # and some redirects must match the following. The default in Devise for existing - # apps is `200 OK` and `302 Found respectively`, but new apps are generated with + # apps is `200 OK` and `302 Found` respectively, but new apps are generated with # these new defaults that match Hotwire/Turbo behavior. # Note: These might become the new default in future versions of Devise. config.responder.error_status = :unprocessable_entity diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb index 44db35dd..70d43e58 100644 --- a/config/initializers/simple_form.rb +++ b/config/initializers/simple_form.rb @@ -113,7 +113,7 @@ # You can define the class to use on all labels. Default is nil. # config.label_class = nil - # You can define the default class to be used on forms. Can be overriden + # You can define the default class to be used on forms. Can be overridden # with `html: { :class }`. Defaulting to none. # config.default_form_class = nil diff --git a/spec/system/itineraries_spec.rb b/spec/system/itineraries_spec.rb index 45632f75..4b5380f1 100644 --- a/spec/system/itineraries_spec.rb +++ b/spec/system/itineraries_spec.rb @@ -27,7 +27,7 @@ def login_as_male male login_via_auth0 - # NOTE: without the below line, the first test will fail, like it didn't vist the authentication link + # NOTE: without the below line, the first test will fail, like it didn't visit the authentication link expect(page).to have_current_path dashboard_path end @@ -35,7 +35,7 @@ def login_as_female female OmniAuth.config.mock_auth[:auth0] = OMNIAUTH_MOCKED_AUTHHASH.merge info: { name: 'Johanna Doe' }, extra: { raw_info: { gender: 'female' } } login_via_auth0 - # NOTE: without the below line, the first test will fail, like it didn't vist the authentication link + # NOTE: without the below line, the first test will fail, like it didn't visit the authentication link expect(page).to have_current_path dashboard_path ensure OmniAuth.config.mock_auth[:auth0] = OMNIAUTH_MOCKED_AUTHHASH