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

Why I see LoadError: cannot load such file -- spec_helper?

When your tests fails with:

LoadError: cannot load such file -- spec_helper

then problem might be related to the fact you specified complex KNAPSACK_PRO_TEST_FILE_PATTERN and knapsack_pro gem cannot detect correct main test directory with spec_helper. You should set KNAPSACK_PRO_TEST_DIR=spec. Please read also example.

Start using Knapsack Pro

Sign up and speed up your tests.