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

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

Instance Method Summary collapse

Instance Method Details

#appObject


710
711
712
713
714
715
716
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 710

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

#app=(app) ⇒ Object


718
719
720
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 718

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

#register_encoder(*args) ⇒ Object


722
723
724
# File 'actionpack/lib/action_dispatch/testing/integration.rb', line 722

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