mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
parent
bb108efedd
commit
fa52001be6
141 changed files with 1388 additions and 1664 deletions
|
@ -16,9 +16,17 @@ require 'minitest/mock'
|
|||
require 'capybara/rails'
|
||||
require 'capybara/minitest'
|
||||
require 'webmock/minitest'
|
||||
require 'support/rails5_assertions' # Remove once upgraded to Rails 5
|
||||
require 'support/rails5_assertions' # Remove once upgraded to Rails 5.1
|
||||
require 'support/assertions/epp_assertions'
|
||||
|
||||
|
||||
# `bin/rails test` is not the same as `bin/rake test`.
|
||||
# All tasks will be loaded (and executed) twice when using the former without `Rake::Task.clear`.
|
||||
# https://github.com/rails/rails/issues/28786
|
||||
require 'rake'
|
||||
Rake::Task.clear
|
||||
Rails.application.load_tasks
|
||||
|
||||
Setting.address_processing = false
|
||||
Setting.registry_country_code = 'US'
|
||||
|
||||
|
@ -43,13 +51,6 @@ class ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
# Allows testing OPTIONS request just like GET or POST
|
||||
module ActionDispatch::Integration::RequestHelpers
|
||||
def options(path, parameters = nil, headers_or_env = nil)
|
||||
process :options, path, parameters, headers_or_env
|
||||
end
|
||||
end
|
||||
|
||||
class ApplicationIntegrationTest < ActionDispatch::IntegrationTest
|
||||
include Capybara::DSL
|
||||
include Capybara::Minitest::Assertions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue