Skip to content

Commit 5458641

Browse files
authored
Update all Bundler dependencies (2023-09-25) (#1104)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
1 parent 5194e9a commit 5458641

12 files changed

+32
-31
lines changed

.rubocop.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ AllCops:
1515
- 'db/schema.rb'
1616
- 'vendor/**/*'
1717

18+
Capybara/ClickLinkOrButtonStyle: { EnforcedStyle: link_or_button }
1819
Layout/LineLength: { Max: 80 }
1920
Layout/RedundantLineBreak: { InspectBlocks: true }
2021
Metrics/AbcSize:

Gemfile.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ GEM
116116
feedjira (3.2.2)
117117
loofah (>= 2.3.1)
118118
sax-machine (>= 1.0)
119-
ffi (1.15.5)
119+
ffi (1.16.1)
120120
fugit (1.8.1)
121121
et-orbi (~> 1, >= 1.2.7)
122122
raabro (~> 1.4)
123123
globalid (1.2.1)
124124
activesupport (>= 6.1)
125-
good_job (3.18.3)
125+
good_job (3.19.2)
126126
activejob (>= 6.0.0)
127127
activerecord (>= 6.0.0)
128128
concurrent-ruby (>= 1.0.2)
@@ -164,7 +164,7 @@ GEM
164164
net-protocol
165165
net-protocol (0.2.1)
166166
timeout
167-
net-smtp (0.3.3)
167+
net-smtp (0.4.0)
168168
net-protocol
169169
nio4r (2.5.9)
170170
nokogiri (1.15.4)
@@ -184,7 +184,7 @@ GEM
184184
psych (5.1.0)
185185
stringio
186186
public_suffix (5.0.3)
187-
puma (6.3.1)
187+
puma (6.4.0)
188188
nio4r (~> 2.0)
189189
raabro (1.4.0)
190190
racc (1.7.1)
@@ -267,17 +267,17 @@ GEM
267267
unicode-display_width (>= 2.4.0, < 3.0)
268268
rubocop-ast (1.29.0)
269269
parser (>= 3.2.1.0)
270-
rubocop-capybara (2.18.0)
270+
rubocop-capybara (2.19.0)
271271
rubocop (~> 1.41)
272-
rubocop-factory_bot (2.23.1)
272+
rubocop-factory_bot (2.24.0)
273273
rubocop (~> 1.33)
274274
rubocop-rails (2.21.1)
275275
activesupport (>= 4.2.0)
276276
rack (>= 1.1)
277277
rubocop (>= 1.33.0, < 2.0)
278278
rubocop-rake (0.6.0)
279279
rubocop (~> 1.0)
280-
rubocop-rspec (2.24.0)
280+
rubocop-rspec (2.24.1)
281281
rubocop (~> 1.33)
282282
rubocop-capybara (~> 2.17)
283283
rubocop-factory_bot (~> 2.22)
@@ -334,7 +334,7 @@ GEM
334334
addressable (>= 2.8.0)
335335
crack (>= 0.3.2)
336336
hashdiff (>= 0.4.0, < 2.0.0)
337-
websocket (1.2.9)
337+
websocket (1.2.10)
338338
websocket-driver (0.7.6)
339339
websocket-extensions (>= 0.1.0)
340340
websocket-extensions (0.1.5)

spec/requests/debug_controller_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ def setup
2323

2424
get "/admin/debug"
2525

26-
expect(rendered).to have_selector("dd", text: /#{RUBY_VERSION}/)
26+
expect(rendered).to have_css("dd", text: /#{RUBY_VERSION}/)
2727
end
2828

2929
it "displays the user agent" do
3030
setup
3131

3232
get("/admin/debug", headers: { "HTTP_USER_AGENT" => "testy" })
3333

34-
expect(rendered).to have_selector("dd", text: /testy/)
34+
expect(rendered).to have_css("dd", text: /testy/)
3535
end
3636

3737
it "displays the jobs count" do
@@ -40,16 +40,16 @@ def setup
4040

4141
get "/admin/debug"
4242

43-
expect(rendered).to have_selector("dd", text: /12/)
43+
expect(rendered).to have_css("dd", text: /12/)
4444
end
4545

4646
it "displays pending migrations" do
4747
setup
4848

4949
get "/admin/debug"
5050

51-
expect(rendered).to have_selector("li", text: /Migration B - 2/)
52-
.and have_selector("li", text: /Migration C - 3/)
51+
expect(rendered).to have_css("li", text: /Migration B - 2/)
52+
.and have_css("li", text: /Migration C - 3/)
5353
end
5454
end
5555

spec/requests/feeds_controller_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
get "/feeds"
1212

13-
expect(rendered).to have_selector("li.feed", count: 2)
13+
expect(rendered).to have_css("li.feed", count: 2)
1414
end
1515

1616
it "displays message to add feeds if there are none" do
1717
login_as(default_user)
1818

1919
get "/feeds"
2020

21-
expect(rendered).to have_selector("#add-some-feeds")
21+
expect(rendered).to have_css("#add-some-feeds")
2222
end
2323
end
2424

@@ -29,7 +29,7 @@
2929

3030
get "/feed/#{story.feed_id}"
3131

32-
expect(rendered).to have_selector("#stories")
32+
expect(rendered).to have_css("#stories")
3333
end
3434

3535
it "raises an error if the feed belongs to another user" do
@@ -97,7 +97,7 @@ def params(feed, **overrides)
9797

9898
get "/feeds/new"
9999

100-
expect(rendered).to have_selector("form#add-feed-setup")
100+
expect(rendered).to have_css("form#add-feed-setup")
101101
end
102102
end
103103

@@ -131,7 +131,7 @@ def params(feed, **overrides)
131131
expect($stderr).to receive(:puts).with(/Error occurred/)
132132
post("/feeds", params: { feed_url: })
133133

134-
expect(rendered).to have_selector(".error")
134+
expect(rendered).to have_css(".error")
135135
end
136136
end
137137

@@ -145,7 +145,7 @@ def params(feed, **overrides)
145145

146146
post("/feeds", params: { feed_url: })
147147

148-
expect(rendered).to have_selector(".error")
148+
expect(rendered).to have_css(".error")
149149
end
150150
end
151151
end

spec/requests/passwords_controller_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
it "displays a form to enter your password" do
66
get "/setup/password"
77

8-
expect(rendered).to have_selector("form#password_setup")
8+
expect(rendered).to have_css("form#password_setup")
99
end
1010

1111
it "redirects to the login page when signups are not enabled" do

spec/requests/sessions_controller_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
post("/login", params:)
2020

21-
expect(rendered).to have_selector(".error")
21+
expect(rendered).to have_css(".error")
2222
end
2323

2424
it "allows access when password is correct" do

spec/requests/settings_controller_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
get(settings_path)
99

10-
expect(rendered).to have_selector("h1", text: "Settings")
10+
expect(rendered).to have_css("h1", text: "Settings")
1111
.and have_text("User signups are disabled")
1212
end
1313
end

spec/requests/stories_controller_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setup
3030

3131
get "/news"
3232

33-
expect(rendered).to have_selector("#stories")
33+
expect(rendered).to have_css("#stories")
3434
end
3535

3636
it "displays the blog title and article title" do
@@ -48,7 +48,7 @@ def setup
4848

4949
get "/news"
5050

51-
expect(rendered).to have_selector("#mark-all")
51+
expect(rendered).to have_css("#mark-all")
5252
end
5353

5454
it "has correct footer links" do
@@ -65,7 +65,7 @@ def setup
6565

6666
get "/news"
6767

68-
expect(rendered).to have_selector("#zen")
68+
expect(rendered).to have_css("#zen")
6969
end
7070
end
7171

@@ -76,7 +76,7 @@ def setup
7676

7777
get "/archive"
7878

79-
expect(rendered).to have_selector("#stories")
79+
expect(rendered).to have_css("#stories")
8080
end
8181
end
8282

@@ -87,7 +87,7 @@ def setup
8787

8888
get "/starred"
8989

90-
expect(rendered).to have_selector("#stories")
90+
expect(rendered).to have_css("#stories")
9191
end
9292
end
9393

spec/requests/tutorials_controller_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
get "/setup/tutorial"
1313

14-
expect(rendered).to have_selector("#mark-all-instruction")
14+
expect(rendered).to have_css("#mark-all-instruction")
1515
end
1616
end
1717
end

spec/support/system_helpers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ def login_as(user)
55
visit(login_path)
66
fill_in("Username", with: user.username)
77
fill_in("Password", with: user.password)
8-
click_button("Login")
8+
click_on("Login")
99
end
1010
end

spec/system/account_setup_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def fill_in_fields(username:)
55
fill_in("Username", with: username)
66
fill_in("Password", with: "my-password")
77
fill_in("Confirm", with: "my-password")
8-
click_button("Next")
8+
click_on("Next")
99
end
1010

1111
it "allows a user to sign up" do

spec/system/feeds_index_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
visit "/feeds"
99

10-
expect(page).to have_selector("li.feed", count: 2)
10+
expect(page).to have_css("li.feed", count: 2)
1111
end
1212

1313
it "displays message to add feeds if there are none" do

0 commit comments

Comments
 (0)