Bug 1845269 - Review Request: rubygem-minitest-stub-const - Stub constants for the duration of a block in MiniTest
Summary: Review Request: rubygem-minitest-stub-const - Stub constants for the duration...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-08 19:25 UTC by Pavel Valena
Modified: 2020-06-11 09:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-10 12:01:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Comment 1 Pavel Valena 2020-06-08 19:27:02 UTC
Sorry, I forgot to fill in Description:

Stub constants for the duration of a block in MiniTest.

Comment 3 Pavel Valena 2020-06-10 19:49:42 UTC
Thanks, I must've missed that as the require is inconsistent with the gem name (minitest/stub_const), so I was looking for minitest-stub_const at first...

Comment 4 Vít Ondruch 2020-06-11 07:40:56 UTC
(In reply to Pavel Valena from comment #3)
> I was looking for minitest-stub_const at first...

Maybe something to discuss upstream:

https://guides.rubygems.org/name-your-gem/

But checking the source code of the gem, it seems there is possible [1]:

~~~
require 'minitest/stub/const'
~~~

as well as

~~~
require 'minitest/stub_const'
~~~

So you probably want to change this on consumer side.


[1]: https://github.com/adammck/minitest-stub-const/pull/3

Comment 5 Pavel Valena 2020-06-11 09:45:21 UTC
(In reply to Vít Ondruch from comment #4)
> So you probably want to change this on consumer side.

Sure, I'll look into that. Thanks!


Note You need to log in before you can comment on or make changes to this bug.