Sha256: da9ee3fda80bedc88a732cc94ff189e85de58a055970fe7e9937f639c3d9bdf5
Contents?: true
Size: 728 Bytes
Versions: 11
Compression:
Stored size: 728 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Admin describe ParticipatoryProcessUserRoleForm do let(:email) { "my_email@example.org" } let(:name) { "John Wayne" } let(:role) { "admin" } let(:attributes) do { "participatory_process_user_role" => { "email" => email, "name" => name, "role" => role } } end subject { described_class.from_params(attributes) } context "when everything is OK" do it { is_expected.to be_valid } end context "when email is missing" do let(:email) {} it { is_expected.to be_invalid } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems