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

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

Instance Method Summary collapse

Instance Method Details

#appObject



625
626
627
628
629
630
631
# File 'lib/action_dispatch/testing/integration.rb', line 625

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

#app=(app) ⇒ Object



633
634
635
# File 'lib/action_dispatch/testing/integration.rb', line 633

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

#register_encoder(*args) ⇒ Object



637
638
639
# File 'lib/action_dispatch/testing/integration.rb', line 637

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