Skip to content

Add minitest to gemspec, fix deprecation warnings#4

Open
dsander wants to merge 1 commit intomistydemeo:masterfrom
projectivetech:add-minitest-to-gemspec
Open

Add minitest to gemspec, fix deprecation warnings#4
dsander wants to merge 1 commit intomistydemeo:masterfrom
projectivetech:add-minitest-to-gemspec

Conversation

@dsander
Copy link
Copy Markdown
Contributor

@dsander dsander commented Aug 11, 2025

Hello again 😄

Without minitest in the gemspec running rake test failed with test/dataconverter_test.rb:3:in require': cannot load such file -- minitest/autorun`.

After installing the current version it complained about deprecation warnings:

DEPRECATED: global use of must_equal from /Users/dominik/code/ruby/exempi/test/datetime_test.rb:17. Use _(obj).must_equal instead. This will fail in Minitest 6.
DEPRECATED: global use of must_raise from /Users/dominik/code/ruby/exempi/test/dataconverter_test.rb:24. Use _{obj.method}.must_raise instead. This will fail in Minitest 6.

This addresses both problems.

Without minitest in the gemspec running `rake test` failed with `test/dataconverter_test.rb:3:in `require': cannot load such file -- minitest/autorun`.

After installing the current version it complained about deprecation
warnings:

```
DEPRECATED: global use of must_equal from /Users/dominik/code/ruby/exempi/test/datetime_test.rb:17. Use _(obj).must_equal instead. This will fail in Minitest 6.
DEPRECATED: global use of must_raise from /Users/dominik/code/ruby/exempi/test/dataconverter_test.rb:24. Use _{obj.method}.must_raise instead. This will fail in Minitest 6.
```

This addresses both problems.
@mistydemeo
Copy link
Copy Markdown
Owner

I'll give this a test soon, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants