[QUESTION] There is a "How to" guide for the test/development process?
wenderjean opened this issue · comments
Hey guys,
I recently forked the repository in order to contribute to it but I'm actually getting into problems when trying to run specs. I believe the problem is actually related to any specific flow I should follow, basically what I'm getting is:
$ bundle exec rake spec:unit
An error occurred while loading spec_helper.
Failure/Error:
Sequel.connect(
configuration.url,
loggers: [configuration.migrations_logger]
)
URI::InvalidURIError:
bad URI(is not URI?): "sqlite:///Users/me/Documents/Hanami/model/tmp/sqlite/hanami_model.sqlite3"
I've spent some time debugging and trying to understand what I'm missing and I realized that this piece of code deletes my database file even when I try to force its creation.
That's a strange error. I don't feel it's related to the deletion of the database file as SQLite will happily create missing database files.
Which Ruby version?
Which OS?
What version of uri
? (gem list uri
)
Is this on the master
branch?
Can you share the output of env
with anything critical redacted (specifically, anything starting with HANAMI_
)?
And can you try running the spec's again but with full backtraces enabled? SPEC_OPTS="--backtrace" bundle exec rake spec:unit
Closing due to lack of feedback. If you're able to update this issue with further information, please do so.