Merge pull request #4783 from consul/dependabot/bundler/view_component-2.49.1
Bump view_component from 2.37.0 to 2.49.1
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -58,7 +58,7 @@ gem "turbolinks", "~> 5.2.1"
|
||||
gem "turnout", "~> 2.5.0"
|
||||
gem "uglifier", "~> 4.2.0"
|
||||
gem "uuidtools", "~> 2.1.5"
|
||||
gem "view_component", "~> 2.37.0", require: "view_component/engine"
|
||||
gem "view_component", "~> 2.49.1"
|
||||
gem "whenever", "~> 1.0.0", require: false
|
||||
gem "wicked_pdf", "~> 2.1.0"
|
||||
gem "wkhtmltopdf-binary", "~> 0.12.6"
|
||||
|
||||
@@ -302,7 +302,7 @@ GEM
|
||||
httpi (2.4.5)
|
||||
rack
|
||||
socksify
|
||||
i18n (1.8.10)
|
||||
i18n (1.10.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
i18n-tasks (0.9.34)
|
||||
activesupport (>= 4.0.2)
|
||||
@@ -376,7 +376,7 @@ GEM
|
||||
mini_magick (4.11.0)
|
||||
mini_mime (1.1.0)
|
||||
mini_portile2 (2.8.0)
|
||||
minitest (5.14.4)
|
||||
minitest (5.15.0)
|
||||
mixlib-cli (2.1.8)
|
||||
mixlib-config (3.0.9)
|
||||
tomlrb
|
||||
@@ -651,7 +651,7 @@ GEM
|
||||
unicode-display_width (1.7.0)
|
||||
uniform_notifier (1.14.2)
|
||||
uuidtools (2.1.5)
|
||||
view_component (2.37.0)
|
||||
view_component (2.49.1)
|
||||
activesupport (>= 5.0.0, < 8.0)
|
||||
method_source (~> 1.0)
|
||||
warden (1.2.9)
|
||||
@@ -780,7 +780,7 @@ DEPENDENCIES
|
||||
turnout (~> 2.5.0)
|
||||
uglifier (~> 4.2.0)
|
||||
uuidtools (~> 2.1.5)
|
||||
view_component (~> 2.37.0)
|
||||
view_component (~> 2.49.1)
|
||||
web-console (~> 3.7.0)
|
||||
webdrivers (~> 4.6.0)
|
||||
whenever (~> 1.0.0)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
require "rails_helper"
|
||||
|
||||
describe Users::PublicActivityComponent, controller: UsersController do
|
||||
include Rails.application.routes.url_helpers
|
||||
|
||||
around do |example|
|
||||
with_request_url(Rails.application.routes.url_helpers.user_path(user)) { example.run }
|
||||
with_request_url(user_path(user)) { example.run }
|
||||
end
|
||||
|
||||
describe "follows tab" do
|
||||
@@ -28,11 +30,12 @@ describe Users::PublicActivityComponent, controller: UsersController do
|
||||
|
||||
it "is the active tab when the follows filters is selected" do
|
||||
create(:proposal, author: user, followers: [user])
|
||||
controller.params["filter"] = "follows"
|
||||
|
||||
render_inline component
|
||||
with_request_url user_path(user, filter: "follows") do
|
||||
render_inline component
|
||||
|
||||
expect(page).to have_selector "li.is-active", text: "1 Following"
|
||||
expect(page).to have_selector "li.is-active", text: "1 Following"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user