Sha256: bdcb06e9be53f5b94e812ddf4bba522b52ac6a472a823842435c843959f30fa8
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-0.1.0 | decidim-admin/spec/forms/participatory_process_user_role_form_spec.rb |