Sha256: 1ec6b52bc4b6f0d89175accb402c839123d97a89cb9ade1f515f713b82975aad
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true shared_context "with custom redirects params" do let(:organization) { create(:organization) } let(:context) do { current_user: create(:user, organization:), current_organization: organization } end let(:params) do { origin:, destination:, active:, pass_query: } end let(:attributes) do [ origin, { "destination" => destination, "active" => active, "pass_query" => pass_query } ] end let(:origin) { "/origin" } let(:destination) { "/processes" } let(:active) { true } let(:pass_query) { true } let(:another_params) do { allow_images_in_editors: true, allow_videos_in_editors: true } end let(:form) do Decidim::DecidimAwesome::Admin::CustomRedirectForm.from_params(params).with_context(context) end let(:another_form) do Decidim::DecidimAwesome::Admin::ConfigForm.from_params(another_params).with_context(context) end let(:another_config) { Decidim::DecidimAwesome::Admin::UpdateConfig.new(another_form) } end
Version data entries
2 entries across 2 versions & 1 rubygems