postgresql_cursor
postgresql_cursor copied to clipboard
How to setup data to use `each_row` in an rspec test?
Currently, I have my main code working where I run each_row on my ActiveRecord Relation. But in the test, I have an array, and the original code used to be .each so the test used to pass. Now I am running into undefined method 'each_row' for #<Array:0x00007f8a584358e8>. Any suggestion on what the structure in the test should be that it supports each_row ? Any advice will be great! Thank you.