⌚ OpenOpeningstijden main server application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

file_helpers.rb 282B

1234567891011
  1. # frozen_string_literal: true
  2. ##
  3. # Helpers for testing against files
  4. module FileHelpers
  5. def assert_file_contains(file, string)
  6. contents = File.read(file)
  7. message = %(Expected file "#{file}" to contain "#{string}")
  8. assert_includes(contents, string, message)
  9. end
  10. end