From 3ce0714e8b815e109ab8562da0c2e3de82b886cd Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Thu, 16 Mar 2023 12:09:40 +0000 Subject: [PATCH] add more debugging --- spec/services/filter_service_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/services/filter_service_spec.rb b/spec/services/filter_service_spec.rb index 05fbd0828..36da5a18b 100644 --- a/spec/services/filter_service_spec.rb +++ b/spec/services/filter_service_spec.rb @@ -61,7 +61,17 @@ describe FilterService do puts %q[Sales logs where purchid = "2"] pp SalesLog.where(purchid: "2").count FactoryBot.create_list(:sales_log, 5) + puts "\n\n" + puts "All sales logs" + pp SalesLog.all + puts %q[Sales logs where purchid = "2"] + pp SalesLog.where(purchid: "2").count FactoryBot.create(:sales_log, purchid: "2") + puts "\n\n" + puts "All sales logs" + pp SalesLog.all + puts %q[Sales logs where purchid = "2"] + pp SalesLog.where(purchid: "2").count end let(:sales_log_list) { SalesLog.all }