RSpec support for Hanami
- [Tim Riley] Modify
Gemfile
via abefore "install"
hook on thehanami
CLI. This ensures that testing-related gems are installed as part of runninghanami new
(#30)
- [Paweł Świątkowski, Seb Wilgosz] Only enhance
generate
CLI commands if the relevant gems are bundled (#29)
- [Tim Riley] As part of
hanami install
, adddatabase_cleaner-sequel
to theGemfile
and generate DatabaseCleaner configuration inspec/support/db.rb
andspec/support/db/cleaning.rb
(#28)
- [Seb Wilgosz] Only enhance
generate
CLI commands if the relevant gems are bundled (#26)
- [Sean Collins] In generated
spec_helper.rb
, require all files underspec/support/
in a loop, rather than via manual requires (#24)
- [Sean Collins] Include
Dry::Monads[:result]
in tests viasupport/operations.rb
- Drop support for Ruby 3.0
- [Tim Riley] Skip generating tests for
hanami generate
when--skip-tests
CLI option is given. - [Tim Riley] Install Capybara and generate
spec/support/capybara.rb
inhanami install
hook.
- [Tim Riley] Add explanatory code comments to
spec/support/rspec.rb
generated inhanami install
hook.
- [Luca Guidi] Generate spec for
hanami generate part
command
- [Luca Guidi] Default request spec to expect 404, now that
hanami new
doesn't generate a default root route anymore
- [Luca Guidi] Official support for Ruby 3.2
- [Tim Riley] Use Zeitwerk to autoload the gem
- [Luca Guidi] Support RSpec 3.12
- [Luca Guidi] Follow
hanami
versioning
- [Luca Guidi] Generate slice specs under
spec/slices/[slice_name]/
(#9)
- [Luca Guidi] Hook into
hanami new
andhanami generate
to respect name pluralization - [Luca Guidi] Hook into
hanami generate action
to generate action specs
- [Luca Guidi] Hook into
hanami generate slice
to generate a slice directory in spec/ along with a placeholder base action spec [#5]
- [Luca Guidi] Hook into
hanami install
to setup RSpec + Rack::Test