~singpolyma/sgx-jmp

a4621ece61b746829906f40d3b16b080176f8e59 — Stephen Paul Weber 3 years ago 33e8ec5
Cheogram should not save the route since signup is not done
2 files changed, 3 insertions(+), 3 deletions(-)

M lib/registration.rb
M test/test_registration.rb
M lib/registration.rb => lib/registration.rb +2 -2
@@ 171,7 171,7 @@ class Registration
			def initialize(iq, customer, tel)
				@reply = iq.reply
				reply.note_type = :info
				reply.status = :completed
				reply.status = :canceled

				@customer = customer
				@customer_id = customer.customer_id


@@ 412,7 412,7 @@ class Registration

			def initialize(iq, _customer, _tel)
				@reply = iq.reply
				@reply.status = :completed
				@reply.status = :canceled
			end

			def form

M test/test_registration.rb => test/test_registration.rb +1 -1
@@ 200,7 200,7 @@ class RegistrationTest < Minitest::Test
					:<<,
					nil,
					[Matching.new do |reply|
						assert_equal :completed, reply.status
						assert_equal :canceled, reply.status
						assert_equal :info, reply.note_type
						assert_equal reply_text, reply.note.content
						true