Skip to content

Commit aba6542

Browse files
committed
Rubocop fixes
1 parent ed5b694 commit aba6542

22 files changed

+26
-31
lines changed

debug_navigation_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Debug script to investigate the navigation areas controller issue
24

35
require 'rails_helper'

i18n_analysis.rb

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
# Performance analysis script for I18n JavaScript optimization
45
require 'json'
@@ -13,7 +14,7 @@
1314
'navigation' => { 'home' => 'Home', 'about' => 'About' }, # ... hundreds more keys
1415
'forms' => { 'submit' => 'Submit', 'cancel' => 'Cancel' }, # ... hundreds more keys
1516
# Simulate ~2000 translation keys
16-
**1000.times.map { |i| ["key_#{i}", "Value #{i}"] }.to_h
17+
**1000.times.to_h { |i| ["key_#{i}", "Value #{i}"] }
1718
}
1819
}
1920

scripts/categorize_and_fix_specs.rb

100644100755
File mode changed.

scripts/refactor_test_specs.rb

100644100755
File mode changed.
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
# frozen_string_literal: true
22

33
require 'rails_helper'
4-
5-
RSpec.describe 'creating a platform invitation', :as_platform_manager do
6-
let!(:host_platform) do
7-
end
8-
let(:invitee_email) { Faker::Internet.unique.email }
9-
10-
before do
11-
within '#newInvitationModal' do
12-
select 'Platform Invitation', from: 'platform_invitation[type]'
13-
select 'Community Facilitator', from: 'platform_invitation[community_role_id]'
14-
select 'Platform Manager', from: 'platform_invitation[platform_role_id]'
15-
fill_in 'platform_invitation[invitee_email]', with: invitee_email
16-
click_button 'Invite'
17-
end
18-
expect(page).to have_content(invitee_email)
19-
end
20-
end

spec/requests/better_together/geography/countries_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
RSpec.describe 'BetterTogether::Geography::CountriesController', :as_platform_manager do
66
let(:locale) { I18n.default_locale }
7+
78
describe 'GET /:locale/.../host/geography/countries' do
89
it 'renders index' do
910
get better_together.geography_countries_path(locale:)

spec/requests/better_together/geography/region_settlements_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
RSpec.describe 'BetterTogether::Geography::RegionSettlementsController', :as_platform_manager do
66
let(:locale) { I18n.default_locale }
7+
78
describe 'GET /:locale/.../host/geography/region_settlements' do
89
it 'renders index' do
910
get better_together.geography_region_settlements_path(locale:)

spec/requests/better_together/geography/regions_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
RSpec.describe 'BetterTogether::Geography::RegionsController', :as_platform_manager do
66
let(:locale) { I18n.default_locale }
7+
78
describe 'GET /:locale/.../host/geography/regions' do
89
it 'renders index' do
910
get better_together.geography_regions_path(locale:)

spec/requests/better_together/geography/settlements_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
RSpec.describe 'BetterTogether::Geography::SettlementsController', :as_platform_manager do
66
let(:locale) { I18n.default_locale }
7+
78
describe 'GET /:locale/.../host/geography/settlements' do
89
it 'renders index' do
910
get better_together.geography_settlements_path(locale:)

spec/requests/better_together/geography/states_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
RSpec.describe 'BetterTogether::Geography::StatesController', :as_platform_manager do
66
let(:locale) { I18n.default_locale }
7+
78
describe 'GET /:locale/.../host/geography/states' do
89
it 'renders index' do
910
get better_together.geography_states_path(locale:)

0 commit comments

Comments
 (0)