Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

autoload matcher classes to reduce startup time

  • Loading branch information...
commit a0f5026493e69495b53ad0668db68a6bff02c893 1 parent b7f6dde
David Chelimsky dchelimsky authored

Showing 1 changed file with 31 additions and 23 deletions. Show diff stats Hide diff stats

  1. +31 23 lib/rspec/matchers/built_in.rb
54 lib/rspec/matchers/built_in.rb
... ... @@ -1,25 +1,33 @@
1   -require 'rspec/matchers/built_in/base_matcher'
2   -require 'rspec/matchers/built_in/be'
3   -require 'rspec/matchers/built_in/be_instance_of'
4   -require 'rspec/matchers/built_in/base_matcher.rb'
5   -require 'rspec/matchers/built_in/be.rb'
6   -require 'rspec/matchers/built_in/be_instance_of.rb'
7   -require 'rspec/matchers/built_in/be_kind_of.rb'
8   -require 'rspec/matchers/built_in/be_within.rb'
9   -require 'rspec/matchers/built_in/change.rb'
10   -require 'rspec/matchers/built_in/cover.rb' if defined?("[].cover?")
11   -require 'rspec/matchers/built_in/eq.rb'
12   -require 'rspec/matchers/built_in/eql.rb'
13   -require 'rspec/matchers/built_in/equal.rb'
14   -require 'rspec/matchers/built_in/exist.rb'
15   -require 'rspec/matchers/built_in/has.rb'
16   -require 'rspec/matchers/built_in/have.rb'
17   -require 'rspec/matchers/built_in/include.rb'
18   -require 'rspec/matchers/built_in/match.rb'
19   -require 'rspec/matchers/built_in/match_array.rb'
20   -require 'rspec/matchers/built_in/raise_error.rb'
21   -require 'rspec/matchers/built_in/respond_to.rb'
22   -require 'rspec/matchers/built_in/satisfy.rb'
23   -require 'rspec/matchers/built_in/throw_symbol.rb'
  1 +module RSpec
  2 + module Matchers
  3 + module BuiltIn
  4 + require 'rspec/matchers/built_in/base_matcher'
  5 + autoload :BeAnInstanceOf, 'rspec/matchers/built_in/be_instance_of'
  6 + autoload :Be, 'rspec/matchers/built_in/be'
  7 + autoload :BeTrue, 'rspec/matchers/built_in/be'
  8 + autoload :BeFalse, 'rspec/matchers/built_in/be'
  9 + autoload :BeNil, 'rspec/matchers/built_in/be'
  10 + autoload :BeComparedTo, 'rspec/matchers/built_in/be'
  11 + autoload :BePredicate, 'rspec/matchers/built_in/be'
  12 + autoload :BeAKindOf, 'rspec/matchers/built_in/be_kind_of'
  13 + autoload :BeWithin, 'rspec/matchers/built_in/be_within'
  14 + autoload :Change, 'rspec/matchers/built_in/change'
  15 + autoload :Cover, 'rspec/matchers/built_in/cover' if defined?("[].cover?")
  16 + autoload :Eq, 'rspec/matchers/built_in/eq'
  17 + autoload :Eql, 'rspec/matchers/built_in/eql'
  18 + autoload :Equal, 'rspec/matchers/built_in/equal'
  19 + autoload :Exist, 'rspec/matchers/built_in/exist'
  20 + autoload :Has, 'rspec/matchers/built_in/has'
  21 + autoload :Have, 'rspec/matchers/built_in/have'
  22 + autoload :Include, 'rspec/matchers/built_in/include'
  23 + autoload :Match, 'rspec/matchers/built_in/match'
  24 + autoload :MatchArray, 'rspec/matchers/built_in/match_array'
  25 + autoload :RaiseError, 'rspec/matchers/built_in/raise_error'
  26 + autoload :RespondTo, 'rspec/matchers/built_in/respond_to'
  27 + autoload :Satisfy, 'rspec/matchers/built_in/satisfy'
  28 + autoload :ThrowSymbol, 'rspec/matchers/built_in/throw_symbol'
  29 + end
  30 + end
  31 +end
24 32
25 33

0 comments on commit a0f5026

Please sign in to comment.
Something went wrong with that request. Please try again.