To test a feature flag implementation, we create a one-off controller in the test and check the response codes for getting its
#index. We don't want the route for this controller in our actual
routes.rb, so I wrapped it in a
before block of our test:
describe FeatureTestController, :type => :controller do
match '/feature_test' => 'feature_test#index'
describe '#index' do