Skip to content

Commit ba2baa8

Browse files
authored
Merge pull request #6398 from Gabe-Torres/6380-rubocop-config-tune
Rubocop config tune up
2 parents bb101e2 + 98dad2c commit ba2baa8

File tree

4 files changed

+7
-22
lines changed

4 files changed

+7
-22
lines changed

.rubocop.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require:
2-
- rubocop-capybara
32
- rubocop-factory_bot
3+
4+
plugins:
5+
- rubocop-capybara
46
- rubocop-rspec
57
- rubocop-rspec_rails
68

spec/system/static/index_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
context "when visiting the CASA volunteer landing page", :js do
55
describe "when all organizations have logos" do
66
before do
7-
3.times { create(:casa_org, :with_logo, display_name: "CASA of Awesome") }
7+
create_list(:casa_org, 3, :with_logo, display_name: "CASA of Awesome")
88
visit root_path
99
end
1010

spec/system/volunteers/index_spec.rb

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,7 @@
175175
# These tests are very flaky do to the use of datatables on this page.
176176
# If the page is switched over to Hotwire, should try to re-instate these tests.
177177
describe "Manage Volunteers button" do
178-
let!(:volunteers) {
179-
[
180-
create(:volunteer, casa_org: organization),
181-
create(:volunteer, casa_org: organization),
182-
create(:volunteer, casa_org: organization)
183-
]
184-
}
178+
let!(:volunteers) { create_list(:volunteer, 3, casa_org: organization) }
185179

186180
before do
187181
sign_in admin
@@ -229,13 +223,7 @@
229223
end
230224

231225
describe "Select All Checkbox" do
232-
let!(:volunteers) {
233-
[
234-
create(:volunteer, casa_org: organization),
235-
create(:volunteer, casa_org: organization),
236-
create(:volunteer, casa_org: organization)
237-
]
238-
}
226+
let!(:volunteers) { create_list(:volunteer, 3, casa_org: organization) }
239227

240228
before do
241229
sign_in admin

spec/views/all_casa_admins/patch_notes/index.html.erb_spec.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
RSpec.describe "patch_notes/index", type: :view do
44
let(:all_casa_admin) { build(:all_casa_admin) }
5-
let!(:patch_notes) {
6-
[
7-
create(:patch_note),
8-
create(:patch_note)
9-
]
10-
}
5+
let!(:patch_notes) { create_list(:patch_note, 2) }
116

127
before do
138
assign(:patch_notes, patch_notes)

0 commit comments

Comments
 (0)