Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup data to use each_row in an rspec test? #50

Open
yathi opened this issue Dec 17, 2019 · 0 comments
Open

How to setup data to use each_row in an rspec test? #50

yathi opened this issue Dec 17, 2019 · 0 comments

Comments

@yathi
Copy link

yathi commented Dec 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant