timecop Questions

3

Solved

I have a method that uses DateTime.now to perform a search on some data, I want to test the method with various dates but I don't know how to stub DateTime.now nor can I get it working with Timecop...
Sclerosed asked 24/7, 2015 at 7:27

2

Solved

I'm seeing an error in some integration specs, using rspec, capybara, capybara-webkit and timecop. Capybara::FrozenInTime: time appears to be frozen, Capybara does not work with libraries which f...
Highchair asked 21/8, 2012 at 19:8
1

© 2022 - 2024 — McMap. All rights reserved.