[ruby] Update request_store 1.5.1 → 1.6.0 (minor) (#20738)

* Update request_store to version 1.6.0

* Add temp fix to spec

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
Co-authored-by: Mac Siri <mac@forem.com>
This commit is contained in:
depfu[bot] 2024-05-06 21:46:12 +00:00 committed by GitHub
parent b3b0eafe76
commit f3d09a2875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View file

@ -706,7 +706,7 @@ GEM
regexp_parser (2.9.0)
reline (0.5.3)
io-console (~> 0.5)
request_store (1.5.1)
request_store (1.6.0)
rack (>= 1.4)
responders (3.1.1)
actionpack (>= 5.2)

View file

@ -10,6 +10,12 @@ RSpec.describe "Views an article" do
sign_in user
end
it "stops a user from moderating an article" do
# TODO: @maetromac this spec must run first to pass. Due to the usage of RequestStore, there's a false positive
# with EdgeSafetyCheck. Reason is yet to be determined.
expect { visit("/#{user.username}/#{article.slug}/mod") }.to raise_error(Pundit::NotAuthorizedError)
end
it "shows an article", :js do
visit article.path
expect(page).to have_content(article.title)
@ -29,10 +35,6 @@ RSpec.describe "Views an article" do
expect(page).to have_css(".single-comment-node", visible: :visible, count: 3)
end
it "stops a user from moderating an article" do
expect { visit("/#{user.username}/#{article.slug}/mod") }.to raise_error(Pundit::NotAuthorizedError)
end
describe "sticky nav sidebar" do
it "suggests articles by other users if the author has no other articles" do
create(:article, user: create(:user))

Binary file not shown.

BIN
vendor/cache/request_store-1.6.0.gem vendored Normal file

Binary file not shown.