Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rspec::Matchers adds itself to Rspec.configure when it's loaded

  • Loading branch information...
commit 650dda5b91a4b6383a460ed737c8601921cd0d1d 1 parent ffdfce8
@dchelimsky dchelimsky authored
View
7 lib/rspec/matchers.rb
@@ -190,5 +190,10 @@ module Rspec
# config.include(CustomGameMatchers)
# end
#
- module Matchers; end
+ module Matchers
+ if Rspec.respond_to?(:configure)
+ Rspec.configure {|c| c.include self}
+ end
+ end
end
+
View
2  rspec-expectations.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["David Chelimsky", "Chad Humphries"]
- s.date = %q{2010-02-15}
+ s.date = %q{2010-02-19}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
s.extra_rdoc_files = [
"README.markdown"
View
1  spec/spec_helper.rb
@@ -38,6 +38,5 @@ def fail_with(message)
Rspec::configure do |config|
config.mock_with(:rspec)
config.include Rspec::Mocks::Methods
- config.include Rspec::Matchers
config.color_enabled = true
end
Please sign in to comment.
Something went wrong with that request. Please try again.