Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Conversation

@xaviershay
Copy link
Member

Warning for #1267.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never really liked using :: for message sends (or in doc strings to indicate a method). I've never asked David about it but I think he liked it quite a bit since there are a fair number of places in rspec that use it. I always prefer a . for a message send though; to me, :: is a constant scoping operator and I don't see a benefit for using it for something else even though ruby allows it.

Are there situations where you prefer it?

(Don't bother changing it in this PR -- since it's in 2.99 and not master it's not sticking around and I don't really care. I'm just bringing this up because I'm curious how others on the team feel about it).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer ., I used :: here to be consistent with the other specs around it.

@myronmarston
Copy link
Member

This LGTM, but the build is broken for some reason. Regardless, we should hold off merging until the 3.0 feature PR is ready to merge. Thanks for taking the initiative to have this ready, though!

@xaviershay
Copy link
Member Author

oh yes, build failure is unrelated to this PR, I see it on 2-99-maintenance branch too. Need to investigate.

@xaviershay
Copy link
Member Author

Created a separate issue for the build failures: #1269

@xaviershay
Copy link
Member Author

Green now.

@myronmarston
Copy link
Member

Since xit is meant to be a temporary change that is reverted before you commit (although you certainly can commit -- but it's not optimized to be intention revealing), I think it would be good to backport skip (which should be as simple as define_example_method :skip, :pending => true) and recommend it in the deprecation message rather than xit.

@xaviershay
Copy link
Member Author

We'll have to add a deprecation for pending inside an example as well.

@xaviershay
Copy link
Member Author

Both cases now warn and have skip available. Short of issues in the new code, this should be ready to merge.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a merge blocker, but should this be "Backported from RSpec 3 to aid migration"? "Backported from 3" is a little odd on its own.

@xaviershay
Copy link
Member Author

Addressed both issues.

@myronmarston
Copy link
Member

This LGTM. Merge whenever you like.

@xaviershay
Copy link
Member Author

Holding off merge until #1267 is pulled in.

@xaviershay
Copy link
Member Author

HTML fixtures need re-gen ... am hoping to be able to rebase this on top of #1306 to solve that problem.

Includes a backport of `skip` to assist with upgrading.
@xaviershay
Copy link
Member Author

Build failure is rbx.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like you should remove this call to add_setting since you are defining the methods below...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_setting does some other stuff too.

@xaviershay
Copy link
Member Author

Pushed up response to comment, I'm happy for this to merged on green (if others are too).

@myronmarston
Copy link
Member

LGTM

@myronmarston
Copy link
Member

Failure is due to rubinius/rubinius#2934 so I'm merging.

myronmarston added a commit that referenced this pull request Feb 10, 2014
Provide upgrade warning for pending behaviour change.
@myronmarston myronmarston merged commit 733b423 into 2-99-maintenance Feb 10, 2014
@myronmarston myronmarston deleted the issue-1208-deprecation branch February 10, 2014 18:23
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…-deprecation

Provide upgrade warning for pending behaviour change.

---
This commit was imported from rspec/rspec-core@733b423.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants