Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check for Spec before checking for Spec::VERSION

- eliminates deprecation notices when running rspec's own specs
  • Loading branch information...
commit 94a45d24268dc76be79a0cd0842bdced26cdd52d 1 parent d899f10
@dchelimsky dchelimsky authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rspec/core/configuration.rb
View
2  lib/rspec/core/configuration.rb
@@ -338,7 +338,7 @@ def load_spec_files
private
def raise_if_rspec_1_is_loaded
- if defined?(Spec::VERSION::MAJOR) && Spec::VERSION::MAJOR == 1
+ if defined?(Spec) && defined?(Spec::VERSION::MAJOR) && Spec::VERSION::MAJOR == 1
raise <<-MESSAGE
#{'*'*80}
Please sign in to comment.
Something went wrong with that request. Please try again.