Conversation
Nothing revolutionary, just getting the spec ball rolling, mostly.
| @@ -0,0 +1,5 @@ | |||
| { | |||
| users: { | |||
| name: -> { "Jimbo #{SecureRandom.hex(8)}" } | |||
There was a problem hiding this comment.
just demonstrating what a "dynamic" definition could look like, could use faker instead if more realistic usage was desirable
| @@ -0,0 +1,176 @@ | |||
| -- | |||
There was a problem hiding this comment.
just a very basic dump file created for this purpose
may be desirable in the future to also test
- different pg dump versions
- more exotic column types
- may want some data that could intentionally try to break
line_regex, a la bobby tables https://xkcd.com/327/
There was a problem hiding this comment.
Hi, I haven't looked at the test jet, but I started to use the gem (thanks for creating it), and I had an error (extra data after last expected column) that may be related to having the delimiter inside text columns.
Some instructions could be added to the readme about handling this case.
Also, I had to specify plain text format and utf-8 for my dumb file to avoid weird characters.
I'll read more to confirm if this is a bug unless someone has experienced it before and reply with some advice.
|
|
||
| it "does something useful" do | ||
| expect(false).to eq(true) | ||
| it "can process a file with no transformations, producing an exact copy" do |
There was a problem hiding this comment.
didn't put too much thought into these, definitely not suggesting they come close to exhausting the set of behaviour that would be good to test
Thanks for your work on this gem, it is almost exactly what I've been looking for (and was about to try to write).
Nothing revolutionary here with the tests, just getting the spec ball rolling, mostly.