Adds specs for creating failed officing census calls
This commit is contained in:
@@ -8,7 +8,7 @@ class Officing::ResidenceController < Officing::BaseController
|
||||
end
|
||||
|
||||
def create
|
||||
@residence = Officing::Residence.new(residence_params)
|
||||
@residence = Officing::Residence.new(residence_params.merge(officer: current_user.poll_officer))
|
||||
if @residence.save
|
||||
redirect_to new_officing_voter_path(id: @residence.user.id), notice: t("officing.residence.flash.create")
|
||||
else
|
||||
@@ -34,4 +34,4 @@ class Officing::ResidenceController < Officing::BaseController
|
||||
redirect_to officing_root_path, notice: t("officing.residence.flash.not_allowed")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user