Sha256: 8c585983a9722047293ce52b5b53d2e38876b0d35d5ae5a4594c1934556e634a

Contents?: true

Size: 1.13 KB

Versions: 48

Compression:

Stored size: 1.13 KB

Contents

require 'test_helper'

module Incline
  class ContactControllerTest < ::ActionDispatch::IntegrationTest

    access_tests_for :new,
                     url_helper:      'incline.contact_path',
                     allow_anon:      true,
                     allow_any_user:  true,
                     allow_admin:     true

    access_tests_for :create,
                     method:          :post,
                     url_helper:      'incline.contact_path',
                     success:         'main_app.root_path',
                     allow_anon:      true,
                     allow_any_user:  true,
                     allow_admin:     true,
                     create_params: {
                         contact_message: {
                             your_name:   'John Doe',
                             your_email:  'jdoe@example.com',
                             related_to:  'Other',
                             subject:     'Just a test',
                             body:        'This is only a test.',
                             recaptcha:   Incline::Recaptcha::DISABLED
                         }
                     }


  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 test/controllers/incline/contact_controller_test.rb
incline-0.3.13 test/controllers/incline/contact_controller_test.rb
incline-0.3.12 test/controllers/incline/contact_controller_test.rb
incline-0.3.11 test/controllers/incline/contact_controller_test.rb
incline-0.3.10 test/controllers/incline/contact_controller_test.rb
incline-0.3.9 test/controllers/incline/contact_controller_test.rb
incline-0.3.8 test/controllers/incline/contact_controller_test.rb
incline-0.3.7 test/controllers/incline/contact_controller_test.rb
incline-0.3.6 test/controllers/incline/contact_controller_test.rb
incline-0.3.5 test/controllers/incline/contact_controller_test.rb
incline-0.3.4 test/controllers/incline/contact_controller_test.rb
incline-0.3.3 test/controllers/incline/contact_controller_test.rb
incline-0.3.2 test/controllers/incline/contact_controller_test.rb
incline-0.3.1 test/controllers/incline/contact_controller_test.rb
incline-0.3.0 test/controllers/incline/contact_controller_test.rb
incline-0.2.36 test/controllers/incline/contact_controller_test.rb
incline-0.2.35 test/controllers/incline/contact_controller_test.rb
incline-0.2.34 test/controllers/incline/contact_controller_test.rb
incline-0.2.28 test/controllers/incline/contact_controller_test.rb
incline-0.2.27 test/controllers/incline/contact_controller_test.rb