New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pending specs #10
Conversation
So this LGTM bar the temporary branch, naturally. |
Re: |
Actually thinking about it... this was extracted from elsewhere, so that last statement is false. Maybe we can drop that stuff. |
Can we just change it to |
@JonRowe I changed |
Hmm, so this looks fine from a 3.x point of view, but I do wonder what this will do when included in 2.99 though... |
Well, it doesn't specify an version in the discovery name anymore so why would it matter? |
I guess maybe we should try though |
Mostly I think because it might conflict with the version built into 2.99 |
So you were right...this didn't work quite right. I made a change to rspec-core to make this work: rspec/rspec-core#1528. That plus a fix here (dbaf9ce) makes things work properly. I went through the 2.14 -> 2.99 -> 3.0 upgrade sequence and it works. |
Ok, let's run with this then. |
rspec-core’s formatting has changed a bit. The backtrace used to be formatted like so: �[36m # ./spec/autotest/failed_results_re_spec.rb:31:in `block (4 levels) in <top (required)>'�[0m �[36m # ./spec/autotest/failed_results_re_spec.rb:6:in `block in run_example'�[0m �[36m # ./spec/autotest/failed_results_re_spec.rb:18:in `run_group'�[0m �[36m # ./spec/autotest/failed_results_re_spec.rb:8:in `run_example'�[0m �[36m # ./spec/autotest/failed_results_re_spec.rb:31:in `block (3 levels) in <top (required)>'�[0m �[36m # /Users/myron/code/rspec-dev/repos/rspec-core/exe/rspec:4:in `<top (required)>'�[0m …but is now formatted like so: �[36m# ./spec/autotest/failed_results_re_spec.rb:31:in `block (4 levels) in <top (required)>'�[0m �[36m# ./spec/autotest/failed_results_re_spec.rb:6:in `block in run_example'�[0m �[36m# ./spec/autotest/failed_results_re_spec.rb:18:in `run_group'�[0m �[36m# ./spec/autotest/failed_results_re_spec.rb:8:in `run_example'�[0m �[36m# ./spec/autotest/failed_results_re_spec.rb:31:in `block (3 levels) in <top (required)>'�[0m �[36m# /Users/myron/code/rspec-dev/repos/rspec-core/exe/rspec:4:in `<top (required)>'�[0m This change makes the regex tolerant of the ANSI color code being anywhere between the start of the line and the `#`.
There’s no good reason to include the rspec version number.
Autotest’s auto discovery mechanism only works properly when we name the constant `Rspec` since that’s how it maps `rspec`.
OK, I removed the temporary branch usage now that the rspec-core PR got merged. I plan to merge this when green. |
Merging as green. |
Follow up to #9. Based on rspec/rspec-core#1525.
This is the last change I had planned to make before this being ready to release with the RC release. One thing I was concerned/confused about is that there are a bunch of places in the code here that specifically reference
RSpec2
(orRspec2
). @JonRowe should we update those to rspec 3? I don't really understand how our autotest integration works, TBH.