Class: RSpec::Matchers::BuiltIn::StartWith

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)


30
31
32
33
# File 'opal/opal/rspec/fixes/rspec/matchers/built_in/start_and_end_with.rb', line 30

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