Skip to content

Commit e69e27f

Browse files
Tweak regarding Ruby 321
1 parent 74baaf0 commit e69e27f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up ruby
4040
uses: ruby/setup-ruby@v1
4141
with:
42-
ruby-version: 3.0.4
42+
ruby-version: 3.2.1
4343
bundler-cache: true
4444

4545
- name: Prepare test database

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ AllCops:
1212
Layout/LineLength:
1313
Max: 100
1414
Metrics/BlockLength:
15-
ExcludedMethods: ['describe', 'context', 'feature']
15+
IgnoredMethods: ['describe', 'context', 'feature']
1616
Metrics/MethodLength:
1717
Max: 15
1818
Style/AsciiComments:

spec/controllers/pages_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
context '#main' do
55
before do
66
admin_user = FactoryBot.build(:admin_user)
7-
FactoryBot.create_list :announcement, 5, admin_user: admin_user
7+
FactoryBot.create_list :announcement, 5, admin_user:
88
end
99

1010
it 'should redirect root to pages/main' do

spec/models/announcement_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
context '#create' do
1212
before do
1313
admin_user = FactoryBot.build(:admin_user)
14-
@announcement = FactoryBot.build(:announcement, admin_user: admin_user)
14+
@announcement = FactoryBot.build(:announcement, admin_user:)
1515
end
1616

1717
it 'is invalid without title' do

0 commit comments

Comments
 (0)