pushvendor icon indicating copy to clipboard operation
pushvendor copied to clipboard

Build out Tests

Open HuntBurdick opened this issue 10 years ago • 4 comments

Using Rspec

HuntBurdick avatar Apr 14 '14 22:04 HuntBurdick

I can help build out tests, but I can't get the ones that are already there to run. I just get

"ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "contacts" does not exist LINE 1: DELETE FROM "contacts" ^ : DELETE FROM "contacts""

mgberlin avatar Apr 16 '14 01:04 mgberlin

Thanks for all your work mgberlin. I honestly have never written a test for Rails and have no clue what it entails. The tests that are there were generated by the scaffold command and have not been modified. "contacts" may have been a scaffold I built out and then deleted. I'll probably be looking into this more since I think tests are important. thanks.

HuntBurdick avatar Apr 16 '14 04:04 HuntBurdick

No problem. I saw your posts on HN, and I think it's a cool project. I'll try to write out a few tests tomorrow. They're the kind of thing that it's hard to write the first few, but once you have some in front of you it's easy to add more.

mgberlin avatar Apr 16 '14 04:04 mgberlin

Cool deal! Thanks for doing that. Your the man mgberlin! I am looking through the code now. Not 100% how it works yet but like you say, it is getting clearer through example.

HuntBurdick avatar Apr 16 '14 13:04 HuntBurdick