Sha256: f0ca63a43d1d7545c832213cd0e741a303a359f6b79127a74a8bcf222b464ef3
Contents?: true
Size: 880 Bytes
Versions: 4
Compression:
Stored size: 880 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true require "spec_helper" module Decidim module Pages module Admin describe PageForm do let(:current_organization) { create(:organization) } let(:body) do { "en" => "<p>Content</p>", "ca" => "<p>Contingut</p>", "es" => "<p>Contenido</p>" } end let(:commentable) { true } let(:attributes) do { "page" => { "body" => body, "commentable" => commentable } } end subject do described_class.from_params(attributes).with_context( current_organization: current_organization ) end context "when everything is OK" do it { is_expected.to be_valid } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems