Add polls stub for testing in registrar area

#248
This commit is contained in:
Artur Beljajev 2017-01-24 04:10:40 +02:00
parent bdebfafe85
commit 1c3a482304

View file

@ -3,8 +3,13 @@ class Registrar::PollsController < Registrar::DeppController # EPP controller
before_action :init_epp_xml before_action :init_epp_xml
def show def show
if Rails.env.test? # Stub for depp server request
@data = Object.new
def @data.css(key); []; end
else
@data = depp_current_user.request(@ex.poll) @data = depp_current_user.request(@ex.poll)
end end
end
def destroy def destroy
@data = depp_current_user.request(@ex.poll(poll: { @data = depp_current_user.request(@ex.poll(poll: {