Module: ActionDispatch::IntegrationTest::Behavior::ClassMethods

Defined in:
actionpack/lib/action_dispatch/testing/integration.rb

Instance Method Summary collapse

Instance Method Details

#appObject



655
656
657
658
659
660
661
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 655

def app
  if defined?(@@app) && @@app
    @@app
  else
    ActionDispatch.test_app
  end
end

#app=(app) ⇒ Object



663
664
665
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 663

def app=(app)
  @@app = app
end

#register_encoder(*args, **options) ⇒ Object



667
668
669
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 667

def register_encoder(*args, **options)
  RequestEncoder.register_encoder(*args, **options)
end