rspec-support
rspec-support copied to clipboard
Common code needed by the other RSpec gems. Not intended for direct use.
With the default definition, cloning a StdErrSplitter results in the clone having the same @orig_stderr instance as the original Splitter has, which means that reopening either Splitter affects both (since...
Hi I'd like to give you some context about this PR. ## TL; DR See #551 , it is annoying to see the noise added by `anything` matcher on diffs...
A long time ago, a fellow notice a regression in the [behavior of diffing](https://github.com/rspec/rspec-expectations/issues/415). Roughly speaking, `expect(["foo"]).to eq(["foo", "baz"])` doesn't print a "Diff" section of output. But `expect(["foo"]).to eq(["foo", "baz\n"])`...
New differ
Hello Few people express the lack of clear informations with the RSpec diff output. As expressed [[1](https://github.com/rspec/rspec-core/issues/2535#issuecomment-393074927)][[2](https://github.com/rspec/rspec-core/issues/2535#issuecomment-393224649)]. @myronmarston explained the issue with `diff-lcs` and why we should use a new...
Attempting to fix https://github.com/rspec/rspec-expectations/issues/1451 Refactor `has_kw_args_in?`: - try to use positional parameter information to determine whether a hash is kw_args - try to leverage information passed by the ruby2_keywords annotation...
### Subject of the issue When verified doubles are turned on, a particular combination of method arguments causes RSpec to crash - it gets confused with the method signature. ###...
### Subject of the issue Cross posting issue: https://github.com/rspec/rspec-expectations/issues/1451 The tldr of that issue is for a given function `def foo(a=1, b:2)` we get ambiguous args in the validator because...
Enhance ObjectFormatter to transcribe values as their memoized let blocks or instance variable names
### Subject of the issue I am constantly spending time answering the question "which object is this?" when writing specs. This is especially true for expectations on arrays or hashes,...
This is a solution attempt for #536 On Ruby 3 we can (with effort) distinguish between a last positional hash and a keyword hash, because the mixed behaviour we can...