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