small medium large xlarge

06 Jul 2017, 18:52
Samuel Torreao (1 post)


In your code on chapter 7, you supply fake, hard codded data for Customers. All the ‘created_at’ fields are valid Dates, not Timestamps. When using the database we end up with ‘joined 2017-06-28T13:59:04.549Z’ and not ‘joined 2017-06-28’. Trying to solve this problem formatting the date as {{ customer.created_at | date: "yyyy-mm-dd" }} solves the problem but breaks feature tests:

Capybara::Poltergeist::JavascriptError: One or more errors were raised in the Javascript code on the page. If you don’t care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).

   ERROR ReferenceError: Can't find variable: Intl

What are your suggestions?

Thank you, Samuel.

You must be logged in to comment