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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)