Permalink
Browse files

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

  • Loading branch information...
1 parent ffdfce8 commit 650dda5b91a4b6383a460ed737c8601921cd0d1d @dchelimsky dchelimsky committed Feb 20, 2010
Showing with 7 additions and 3 deletions.
  1. +6 −1 lib/rspec/matchers.rb
  2. +1 −1 rspec-expectations.gemspec
  3. +0 −1 spec/spec_helper.rb
View
@@ -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
+
@@ -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
@@ -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

0 comments on commit 650dda5

Please sign in to comment.