episode-116/store/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/partials_support.rb
def partial_pattern partial_path
      path = partial_path.split '/'
      filename = path.delete_at(-1)
      filename = '_' + filename unless filename.starts_with? '_'
      filename << '.*' unless filename.include? '.'
      pattern = selenium_tests_path + '/'
      pattern << path.join('/') + '/' if path
      pattern << filename
    end
# Generates the file pattern from the provided partial path.
# The starting _ and file extension don't have too be provided.

Generates the file pattern from the provided partial path.
The starting _ and file extension don't have too be provided.
Generates the file pattern from the provided partial path . The starting _ and file extension don ' t have too be provided .
def partial_pattern partial_path
      path = partial_path.split '/'
      filename = path.delete_at(-1)
      filename = '_' + filename unless filename.starts_with? '_'
      filename << '.*' unless filename.include? '.'
      pattern = selenium_tests_path + '/'
      pattern << path.join('/') + '/' if path
      pattern << filename
    end
def partial_pattern partial_path path = partial_path . split '/' filename = path . delete_at ( - 1 ) filename = '_' + filename unless filename . starts_with? '_' filename << '.*' unless filename . include? '.' pattern = selenium_tests_path + '/' pattern << path . join ( '/' ) + '/' if path pattern << filename end
Generates the file pattern from the provided partial path.
Generates the file pattern from the provided partial path .
partial_path