-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If you need to test something like Marshal parsing between different Ruby/Rails versions, it's pretty easy to insert your SQL dump directly into your test case, like so: ```ruby setup do ActiveRecord::Base.connection.execute <<~SQL INSERT INTO users (name, email_address, created_at, updated_at) VALUES ('pagination.sql', '[email protected]', TIME('NOW'), TIME('NOW')) SQL end ``` If the SQL is too long, users can use `file_fixture("sqls/pagination.sql").read` or similar to set it up. I don't think Oaken needs to ship a more complex wrapper around this.
- Loading branch information
Showing
3 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters