Browse Source

add more debugging

fix-filter-service-bug
Sam Seed 2 years ago
parent
commit
3ce0714e8b
  1. 10
      spec/services/filter_service_spec.rb

10
spec/services/filter_service_spec.rb

@ -61,7 +61,17 @@ describe FilterService do
puts %q[Sales logs where purchid = "2"] puts %q[Sales logs where purchid = "2"]
pp SalesLog.where(purchid: "2").count pp SalesLog.where(purchid: "2").count
FactoryBot.create_list(:sales_log, 5) 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") 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 end
let(:sales_log_list) { SalesLog.all } let(:sales_log_list) { SalesLog.all }

Loading…
Cancel
Save