[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:
parent
b3b0eafe76
commit
f3d09a2875
4 changed files with 7 additions and 5 deletions
|
|
@ -706,7 +706,7 @@ GEM
|
||||||
regexp_parser (2.9.0)
|
regexp_parser (2.9.0)
|
||||||
reline (0.5.3)
|
reline (0.5.3)
|
||||||
io-console (~> 0.5)
|
io-console (~> 0.5)
|
||||||
request_store (1.5.1)
|
request_store (1.6.0)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (3.1.1)
|
responders (3.1.1)
|
||||||
actionpack (>= 5.2)
|
actionpack (>= 5.2)
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,12 @@ RSpec.describe "Views an article" do
|
||||||
sign_in user
|
sign_in user
|
||||||
end
|
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
|
it "shows an article", :js do
|
||||||
visit article.path
|
visit article.path
|
||||||
expect(page).to have_content(article.title)
|
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)
|
expect(page).to have_css(".single-comment-node", visible: :visible, count: 3)
|
||||||
end
|
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
|
describe "sticky nav sidebar" do
|
||||||
it "suggests articles by other users if the author has no other articles" do
|
it "suggests articles by other users if the author has no other articles" do
|
||||||
create(:article, user: create(:user))
|
create(:article, user: create(:user))
|
||||||
|
|
|
||||||
BIN
vendor/cache/request_store-1.5.1.gem
vendored
BIN
vendor/cache/request_store-1.5.1.gem
vendored
Binary file not shown.
BIN
vendor/cache/request_store-1.6.0.gem
vendored
Normal file
BIN
vendor/cache/request_store-1.6.0.gem
vendored
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue