From a4621ece61b746829906f40d3b16b080176f8e59 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 27 Jul 2021 09:44:24 -0500 Subject: [PATCH] Cheogram should not save the route since signup is not done --- lib/registration.rb | 4 ++-- test/test_registration.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/registration.rb b/lib/registration.rb index c0cb13c..a24720f 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -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 diff --git a/test/test_registration.rb b/test/test_registration.rb index b1ba410..c72043d 100644 --- a/test/test_registration.rb +++ b/test/test_registration.rb @@ -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 -- 2.45.2