Upgrade to RSpec 3 and major specs refactoring #87
Conversation
This conversion is done by Transpec 2.3.7 with the following command: transpec * 69 conversions from: obj.should to: expect(obj).to * 30 conversions from: == expected to: eq(expected) * 24 conversions from: obj.should_not to: expect(obj).not_to * 3 conversions from: it { should ... } to: it { is_expected.to ... } * 2 conversions from: be_false to: be_falsey * 1 conversion from: be_true to: be_truthy * 1 conversion from: obj.should_not_receive(:message) to: expect(obj).not_to receive(:message) * 1 conversion from: obj.should_receive(:message) to: expect(obj).to receive(:message) For more details: https://github.com/yujinakayama/transpec#supported-conversions
zomg |
All of the spec changes look good, but could you explain the spec_help and spec/support stuff? |
c5020a2 actually consists of two edits (I noticed it now, it would be better if I made two commits for them):
|
@zzak news about this pull request? |
News about this pull request? It seems to be abandoned... @rkh can I please ask your attention? |
@mdesantis I'm going to spend some time looking at rack-protection this weekend, and will figure out if there's something that needs to be done to get this merged. There are 26 failing tests against jruby-head, with |
Just curious... why do you test against heads? Are they supposed to be stable? |
They're not supposed to be stable, but it's a good way of catching new issues early (and help catch regressions in the language implementations) |
I got food poisoning, which screwed up my weekend plans pretty significantly. I haven't been able to get to any of what I had planned, unfortunately, but this is still at the top of my list. Sorry about that. |
I got food poisoning on last Friday too :-S no problem, thank you for the Maurizio De Santis 2015-03-30 4:55 GMT+02:00 Katrina Owen notifications@github.com:
|
Upgrade to RSpec 3 and major specs refactoring
I reran this against jruby-head, and it passed just fine. Not sure what happened back in the day. Thank you so much, @mdesantis, for taking the time to upgrade the specs, and I apologize for the delay in getting this merged. |
Upgrade to RSpec 3 and major specs refactoring
Hello,
I'm planning to work a bit on rack-protection performance, so I cloned the project and I found the specs a bit cluttered; so I upgraded to RSpec 3 and did a cleanup.
These are my edits:
Struct.new do; def ... ; end
syntaxrspec --warning
require 'stringio'
linerspec --init
and merge the previous ones into themrequire 'spec_helper'
not needed anymore (because.rspec
now includes--require spec_helper
option)The only change which involves a change to a test is ecae614: I replaced the previous incorrect use of
should
inside a define_method with a mock, and then realized that the test was broken, because thechanger
middleware was called after thedetector
; so I switched them and fixed the test.I hope my changes to be appreciated :)