Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the cq_interested checkbox facultative #4

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/forms/decidim/registration_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class RegistrationForm < Form
validates :password, password: { name: :name, email: :email, username: :nickname }
validates :password_confirmation, presence: true
validates :tos_agreement, allow_nil: false, acceptance: true
validates :cq_interested, allow_nil: false, acceptance: true
validates :address, presence: true

validate :email_unique_in_organization
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/registration_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module Decidim
context "when cq_interested is not checked" do
let(:cq_interested) { "0" }

it { is_expected.to be_invalid }
it { is_expected.to be_valid }
end

context "when address is empty" do
Expand Down