HI everyone, I think I got it working.
# SequelTestCase.rb
DB = Sequel.postgres ## This was the missing line
class SequelTestCase < Minitest::Test
def run(*args, &block)
DB.transaction(:rollback=>:always, :auto_savepoint=>true){super}
end
end
Would be interested to know if that's how you folks do things?
Please do advise. Thank you very much!
regards
Ben
On Monday, December 30, 2019 at 3:47:23 PM UTC+11, Ben Koshy wrote:
>
> Hi all
>
> (Much appreciate you all helping and contributing to sequel.)
>
> I am trying to get a basic mini test working on rails. I am following the
> instructions set here
> <https://github.com/jeremyevans/sequel/blob/master/doc/testing.rdoc>,
> But I seem to be getting a 'read': Connection reset by peer
> (DRb::DRbConnError)
>
> Unsure how to proceed. Was seeking some advice. Here is a minimal sample
> app with a brief description of what I am doing:
>
> <http://goog_1409738588>
> https://github.com/BKSpurgeon/testing_in_sequel
>
> Would appreciate it if you have any pointers on what's going on. (Am also
> happy to make a pull request to clarify the documentation for any future
> users who may come across similar issues etc)
>
> Thanks for your help.
>
> regards
>
> Ben
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/9696d0f7-b973-4b39-b1bb-0a2bf479467c%40googlegroups.com.