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

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

Instance Method Summary collapse

Instance Method Details

#appObject



631
632
633
634
635
636
637
# File 'lib/action_dispatch/testing/integration.rb', line 631

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

#app=(app) ⇒ Object



639
640
641
# File 'lib/action_dispatch/testing/integration.rb', line 639

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

#register_encoder(*args) ⇒ Object



643
644
645
# File 'lib/action_dispatch/testing/integration.rb', line 643

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