Sha256: 583c220dda1a924abfbd92e84ceb92470b4791abc9aa3c79ad996a790bd40ba6

Contents?: true

Size: 305 Bytes

Versions: 11

Compression:

Stored size: 305 Bytes

Contents

module WebValve
  class FakeServiceWrapper
    # lazily resolve the app constant to leverage rails class reloading
    def initialize(app)
      @app_klass_name = app.name
    end

    def call(env)
      app.call(env)
    end

    private

    def app
      @app_klass_name.constantize
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webvalve-0.9.10 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.9 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.8 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.7 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.6 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.5 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.4 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.3 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.2 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.1 lib/webvalve/fake_service_wrapper.rb
webvalve-0.9.0 lib/webvalve/fake_service_wrapper.rb