Sha256: 4c47b2f739de7caba73ae021a5a41ae3618302ea3038109c213cc2b0cbdc1dec
Contents?: true
Size: 1.25 KB
Versions: 9
Compression:
Stored size: 1.25 KB
Contents
# frozen_string_literal: true shared_context "with menu hacks params" do let(:organization) { create(:organization) } let(:context) do { current_user: create(:user, organization: organization), current_organization: organization } end let(:params) do { raw_label: label, url: url, position: position, target: target, visibility: visibility } end let(:attributes) do { "label" => label, "url" => url, "position" => position, "target" => target, "visibility" => visibility } end let(:label) do { "en" => "Menu english", "ca" => "Menu catalan" } end let(:url) { "/some-path" } let(:position) { 2 } let(:target) { "_blank" } let(:visibility) { "hidden" } let(:menu_name) { "menu" } let(:another_params) do { allow_images_in_full_editor: true, allow_images_in_small_editor: true } end let(:form) do Decidim::DecidimAwesome::Admin::MenuForm.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
9 entries across 9 versions & 1 rubygems