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

Deprecation with RSpec 2.99.0 rc1 #25

Open
nathany opened this issue May 21, 2014 · 3 comments
Open

Deprecation with RSpec 2.99.0 rc1 #25

nathany opened this issue May 21, 2014 · 3 comments

Comments

@nathany
Copy link

nathany commented May 21, 2014

<RSpec::Core::DeprecationError: Instantiating a RSpec::Core::CommandLine with an array of options is deprecated. Use Instantiate a RSpec::Core::Runner with a RSpec::Core::ConfigurationOptions instance instead. Called from ~/.rvm/gems/ruby-2.1.2/gems/spork-1.0.0rc4/lib/spork/test_framework/rspec.rb:11

@nathany nathany changed the title Deprecation with RSpec 2.9.9.0 rc1 Deprecation with RSpec 2.99.0 rc1 May 21, 2014
@nathany
Copy link
Author

nathany commented May 21, 2014

Note: it's not possible to enable RSpec's config.raise_errors_for_deprecations! option to prevent deprecations in our own code. This becomes an error at the beginning and prevents guard from continuing. /cc @myronmarston

@myronmarston
Copy link

Note: it's not possible to enable RSpec's config.raise_errors_for_deprecations! option to prevent deprecations in our own code. This becomes an error at the beginning and prevents guard from continuing. /cc @myronmarston

@nathany -- you could try delaying when you set that config until after this warning has been issued:

RSpec.configure do |config|
  before(:suite) { config.raise_errors_for_deprecations! }
end

@nathany
Copy link
Author

nathany commented May 21, 2014

Good point. Thanks @myronmarston.

I'm not 100% sure if that works, as I've fixed all our other deprecations. 😄

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

No branches or pull requests

2 participants