* Update gems * Update more gems * Update @rails/ujs package * Explicitly add sprockets-rails * Gemfile update * Run bin/rails app:setup * Update redis-actionpack * Update stats initializer autoloading * Update acts-as-taggable-on * Disable signed: true option in session store * Switch back to released version of redis-actionpack * Update Gemfile.lock * WIP * Update Rails and gems * Move hair_trigger back to released gem * Add explicit requires to initializers * Update Rails version * Add more explicit require_relative calls * Re-enable ForemStatsDriver * Update schema * Temp spec changes * Bullet started raising errors? * Fix broken spec * Temporarily disable hair_trigger_spec * Refactor * Fix spec * Enable use_rfc4122_namespaced_uuids * Revert "Enable use_rfc4122_namespaced_uuids" This reverts commit 5dac3722284bb08049586bfa943405f8a01289df. * Temporarily deploy to canary * Revert "Temporarily deploy to canary" This reverts commit 04f8469501fab2a3177450baf051ff6259c41827. * Update Containerfile * Add comments to specs Co-authored-by: Mac Siri <krairit.siri@gmail.com>
21 lines
769 B
Ruby
21 lines
769 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe "dashboards/show", type: :view do
|
|
before do
|
|
stub_template "dashboards/_actions_mobile.html.erb" => "stubbed content"
|
|
stub_template "dashboards/_analytics.html.erb" => "stubbed content"
|
|
stub_template "dashboards/_actions.html.erb" => "stubbed content"
|
|
|
|
allow(Images::Optimizer).to receive(:imgproxy_enabled?).and_return(true)
|
|
allow(Settings::General).to receive(:mascot_image_url).and_return("https://i.imgur.com/fKYKgo4.png")
|
|
end
|
|
|
|
context "when using Imgproxy" do
|
|
it "renders mascot image properly" do
|
|
assign(:user, create(:user))
|
|
assign(:articles, [])
|
|
render
|
|
expect(rendered).to match(%r{/w:300/mb:500000/ar:1/aHR0cHM6Ly9pLmlt/Z3VyLmNvbS9mS1lL/Z280LnBuZw})
|
|
end
|
|
end
|
|
end
|