类: RSpec::Matchers::BuiltIn::Be 私有
- 继承
-
BaseMatcher
- Object
- BaseMatcher
- RSpec::Matchers::BuiltIn::Be
- 定义于
- lib/rspec/matchers/built_in/be.rb
概述
此类是私有 API 的一部分。 应尽可能避免使用此类,因为它可能在将来被移除或更改。
提供 be
的实现。不应直接实例化。
常量摘要
从 BaseMatcher 继承的常量
RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED
实例方法摘要 折叠
- #failure_message ⇒ String 私有
- #failure_message_when_negated ⇒ String 私有
-
#initialize(*args) ⇒ Be 构造函数 私有
Be 的一个新实例。
从 BaseMatcher 继承的方法
#description, #diffable?, #expects_call_stack_jump?, #match_unless_raises, #matches?, #supports_block_expectations?
从 Composable 包含的方法
#===, #and, #description_of, #or, should_enumerate?, surface_descriptions_in, unreadable_io?, #values_match?
构造函数详细信息
#initialize(*args) ⇒Be
此方法是私有 API 的一部分。 应尽可能避免使用此方法,因为它可能在将来被移除或更改。
返回 Be 的一个新实例。
104 105 106 |
# File 'lib/rspec/matchers/built_in/be.rb', line 104 def initialize(*args) @args = args end |
实例方法详细信息
#failure_message ⇒String
此方法是私有 API 的一部分。 应尽可能避免使用此方法,因为它可能在将来被移除或更改。
110 111 112 |
# File 'lib/rspec/matchers/built_in/be.rb', line 110 def "expected #{actual_formatted} to evaluate to true" end |
#failure_message_when_negated ⇒String
此方法是私有 API 的一部分。 应尽可能避免使用此方法,因为它可能在将来被移除或更改。
116 117 118 |
# File 'lib/rspec/matchers/built_in/be.rb', line 116 def "expected #{actual_formatted} to evaluate to false" end |