A tool for content designers to present complex information as a flow of questions, leading to an outcome. While the app is mostly self-contained, some Smart Answers use Whitehall to get data on countries and worldwide organisations.
If working on a smart answer that makes use of an API, locally run ./startup.sh --live script to run the app instead of docker.
If you are using GOV.UK Docker, remember to combine it with the commands that follow. See the GOV.UK Docker usage instructions for examples.
Running the test suite
bundle exec rake
Troubleshooting
When running integration tests, if you get SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version <some version number> error, then:
run brew install chromedriver or if you already have the cask, brew upgrade chromedriver
if that doesn’t work, install the correct Chrome driver into usr/local/bin
When running bundle exec rake, if you get rake aborted! LoadError: linked to incompatible <some libruby or gem link>, run gem pristine --all