A minimal config_cat example implementing a Singleton on server initialization and mocking the call for use in rspec via webmock
- bundle
- add your SDK key to
.env
- create a flag called
my_feature
- the homepage will display "my_feature is <On/Off>"
bundle exec rspec
will run a minimal request spec a few dozen specs and puts the output to the terminal.
I'm having weird behaviour of the flag changing midway through the test suite on a different app so produced this minimal example which isn't encountering the same issue.
Now that its done, I might as well post it in case it's helpful as a reference.