Class: AgnosticBackend::RSpec::Matchers::BeIndexable

Inherits:
Object
  • Object
show all
Defined in:
lib/agnostic_backend/rspec/matchers.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject



9
10
11
# File 'lib/agnostic_backend/rspec/matchers.rb', line 9

def description
  "include AgnosticBackend::Indexable"
end

#matches?(actual) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/agnostic_backend/rspec/matchers.rb', line 5

def matches?(actual)
  actual < AgnosticBackend::Indexable
end