FAQ / knapsack_pro / Common problems & solutions for knapsack_pro gem usage

Why knapsack_pro freezes / hangs my CI (for instance Travis)?

Freeze error can occur for example on Travis CI. The timecop gem can result in sporadic freezing due to issues with ordering calls of Timecop.return, Timecop.freeze, and Timecop.travel. For instance, if using RSpec, ensure to have a Timecop.return configured to run after all examples:


# in, e.g. spec/spec_helper.rb
RSpec.configure do |c|
  c.after(:all) do
    Timecop.return
  end
end

Start using Knapsack Pro

Sign up and speed up your tests.