fixes specs

This commit is contained in:
rgarcia
2017-02-15 15:28:24 +01:00
committed by Javi Martín
parent b4499321d3
commit 74706027cb
5 changed files with 13 additions and 9 deletions

View File

@@ -22,14 +22,14 @@ module CommonActions
end
def validate_officer
allow_any_instance_of(Officing::ResidenceController).
allow_any_instance_of(Officing::BaseController).
to receive(:verify_officer_assignment).and_return(true)
end
def set_officing_booth(booth=nil)
booth = create(:poll_booth) if booth.blank?
allow_any_instance_of(Officing::VotersController).
allow_any_instance_of(Officing::BaseController).
to receive(:current_booth).and_return(booth)
end
end