Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::Anything

Inherits:
Core::SingletonExpectation show all
Defined in:
lib/rspec/json_matchers/expectations/mixins/built_in.rb

Overview

Whatever the value is, it just passes A more verbose solution than passing Object in (That also works since everything parsed by JSON inherits from Object)

Examples:

{ key_with_unstable_content => Anything }

Instance Method Summary collapse

Methods inherited from Core::SingletonExpectation

inherited

Methods inherited from RSpec::JsonMatchers::Expectation

build, build_many

Instance Method Details

#expect?(*_args) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 33

def expect?(*_args)
  true
end