In https://github.com/tpitale/mail_room/pull/134, I added header-based JWT authentication to postback strategy. The unit tests were green. Manual testing on GitLab codebase yielded no concerns. However, when I tried to start mail_room with vanilla built-in binary, the program crashes:
It turns out, I forgot to load jwt and base64 before using them. It's a really silly mistake 🤦. Those two gems are already loaded in GitLab codebase. Somehow, while running full test suite in this repository, they are automatically loaded. The test fails when running bundle exec rspec spec/lib/jwt_spec.rb individually.
In https://github.com/tpitale/mail_room/pull/134, I added header-based JWT authentication to postback strategy. The unit tests were green. Manual testing on GitLab codebase yielded no concerns. However, when I tried to start mail_room with vanilla built-in binary, the program crashes:
It turns out, I forgot to load
jwt
andbase64
before using them. It's a really silly mistake 🤦. Those two gems are already loaded in GitLab codebase. Somehow, while running full test suite in this repository, they are automatically loaded. The test fails when runningbundle exec rspec spec/lib/jwt_spec.rb
individually.