• Sean McGivern's avatar
    Add metric initializer spec · 7e467d1c
    Sean McGivern authored
    An empty file in one of the instrumented directories will cause the app
    to fail to start when metrics are enabled. Metrics aren't enabled by
    default in development or test.
    
    We could handle the empty file case explicitly, but a file could still
    not define the constant it is expected to, so instead run the
    initializer manually in a spec and check that it succeeds.
    7e467d1c
metrics.rb 7.64 KB