Class: RSpec::Matchers::BuiltIn::EndWith

Inherits:
Object
  • Object
show all
Defined in:
opal/opal/rspec/fixes/rspec/matchers/built_in/start_and_end_with.rb

Instance Method Summary collapse

Instance Method Details

#subset_matches?Boolean

Returns:

  • (Boolean)


37
38
39
40
# File 'opal/opal/rspec/fixes/rspec/matchers/built_in/start_and_end_with.rb', line 37

def subset_matches?
  check_ordered_element actual
  values_match?(expected, actual[-expected.length, expected.length])
end