模块:RSpec::Matchers::BuiltIn

定义于
lib/rspec/matchers/built_in.rb,
lib/rspec/matchers/built_in/be.rb,
lib/rspec/matchers/built_in/eq.rb,
lib/rspec/matchers/built_in/all.rb,
lib/rspec/matchers/built_in/eql.rb,
lib/rspec/matchers/built_in/has.rb,
lib/rspec/matchers/built_in/cover.rb,
lib/rspec/matchers/built_in/equal.rb,
lib/rspec/matchers/built_in/exist.rb,
lib/rspec/matchers/built_in/match.rb,
lib/rspec/matchers/built_in/yield.rb,
lib/rspec/matchers/built_in/change.rb,
lib/rspec/matchers/built_in/output.rb,
lib/rspec/matchers/built_in/include.rb,
lib/rspec/matchers/built_in/satisfy.rb,
lib/rspec/matchers/built_in/compound.rb,
lib/rspec/matchers/built_in/be_within.rb,
lib/rspec/matchers/built_in/operators.rb,
lib/rspec/matchers/built_in/be_between.rb,
lib/rspec/matchers/built_in/be_kind_of.rb,
lib/rspec/matchers/built_in/respond_to.rb,
lib/rspec/matchers/built_in/raise_error.rb,
lib/rspec/matchers/built_in/base_matcher.rb,
lib/rspec/matchers/built_in/throw_symbol.rb,
lib/rspec/matchers/built_in/be_instance_of.rb,
lib/rspec/matchers/built_in/contain_exactly.rb,
lib/rspec/matchers/built_in/have_attributes.rb,
lib/rspec/matchers/built_in/count_expectation.rb,
lib/rspec/matchers/built_in/start_or_end_with.rb

概述

所有内置匹配器的容器模块。匹配器类位于此处(而不是直接位于 RSpec::Matchers 下),以防止名称冲突,因为 RSpec::Matchers 被包含在用户命名空间中。

自动加载用于延迟匹配器类加载,使 rspec-matchers 启动更快,并避免加载用户不使用的匹配器。

定义于命名空间下

模块: CountExpectation 类: All, BaseMatcher, Be, BeAKindOf, BeAnInstanceOf, BeBetween, BeComparedTo, BeFalsey, BeNil, BePredicate, BeTruthy, BeWithin, Change, ChangeFromValue, ChangeRelatively, ChangeToValue, Compound, ContainExactly, Cover, DynamicPredicate, EndWith, Eq, Eql, Equal, Exist, Has, HaveAttributes, Include, Match, OperatorMatcher, Output, RaiseError, ReliableMatchData, RespondTo, Satisfy, SpecificValuesChange, StartOrEndWith, StartWith, ThrowSymbol, YieldControl, YieldSuccessiveArgs, YieldWithArgs, YieldWithNoArgs