Skip to content
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

Support rspec-2 and rspec-3 #226

Merged
merged 5 commits into from
Dec 4, 2013
Merged

Support rspec-2 and rspec-3 #226

merged 5 commits into from
Dec 4, 2013

Conversation

dchelimsky
Copy link
Contributor

This updates guard-rspec to work with rspec >= 2.14, < 4

This allows guard-rspec users to choose when to upgrade to rspec-3 without having to also update guard-rspec at the same time (assuming they've at least upgraded to a version of guard-rspec that includes this PR).

It is also mostly compatible with guard-rspec developers being able to choose rspec-2.x or rspec-3.x. The only thing missing is that if you are using rspec-2.x and want to use :focus or :focused, it won't work without :focus => true. If you prefer, I can add a guard for that functionality e.g.

config.treat_symbols_as_metadata_keys_with_true_values = true if RSpec::Version::STRING.to_i < 3

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling a1e906a on dchelimsky:rspec-3 into 93ed98b on guard:master.

@thibaudgg
Copy link
Member

Hi @dchelimsky, thanks for your PR (and RSpec!). Yes a guard for the focus tag would be much appreciate!

… for rspec < 3

This should be removed eventually - definitely before rspec-4 is out
(2020?).
@dchelimsky
Copy link
Contributor Author

@thibaudgg done - would you prefer this all get squashed into one commit?

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 9206ce5 on dchelimsky:rspec-3 into 93ed98b on guard:master.

@thibaudgg
Copy link
Member

No, that's nice like that. Thanks!

thibaudgg added a commit that referenced this pull request Dec 4, 2013
Support rspec-2 and rspec-3
@thibaudgg thibaudgg merged commit 06c8466 into guard:master Dec 4, 2013
@dchelimsky dchelimsky deleted the rspec-3 branch December 4, 2013 19:03
@dchelimsky
Copy link
Contributor Author

Thx!

@thibaudgg
Copy link
Member

4.2.0 released!

@dchelimsky
Copy link
Contributor Author

Wow, that was fast! Double thanks!

@myronmarston
Copy link
Contributor

You may also want to update the README. It says:

Compatible with RSpec ~> 2.14

...which implies it's not compatible with RSpec 3.

@thibaudgg
Copy link
Member

Yep, good point. Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants