Is the ‘Travel’ time helper not available in feature specs?

In order to use these helpers you have to include them into your tests.

You can do this by either including it into single test suite:

describe MyClass do
  include ActiveSupport::Testing::TimeHelpers
end

or globally:

RSpec.configure do |config|
  config.include ActiveSupport::Testing::TimeHelpers
end

Leave a Comment

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.