Artur Beljajev
83f8a9fb6a
Extract company register
...
Closes #1079 , #916 , #1077
2019-03-15 17:33:07 +02:00
Artur Beljajev
25a290b751
Extract simplecov
config
2019-03-09 18:13:24 +02:00
Maciej Szlosarczyk
58c928226d
Add handling of OPTIONS request to /api namespace
...
* It allows access from anywhere via wildcard origin
* It sets the timeout to an hour
* It allows all standard HTTP verbs + OPTIONS
2018-10-16 09:32:49 +03:00
Artur Beljajev
168010b787
Add TaskTestCase
2018-08-21 00:50:56 +03:00
Maciej Szlosarczyk
526a9ccd58
Change test structure to follow closer newer Rails 5 rules
...
* Create new class called ApplicationIntegrationTest, so we don't have
to override ActionDispatch::IntegrationTest
* Move UI tests to inherit from ApplicationSystemTestCase
* Existing REST API or EPP tests inherit from
ApplicationIntegrationTest.
* Move `require 'application_system_test_case'` at the end of
`test_helper`
I don't particularly agree with the Rails' convention of treating UI
tests as system tests and API tests as integration tests, but I see no
benefit in actively fighting against it.
2018-07-27 09:36:27 +03:00
Maciej Szlosarczyk
e6d3895b75
Fix typo in assertions filename
2018-07-19 10:40:42 +03:00
Maciej Szlosarczyk
3acd605b90
Change inheritance structure to match the one from Rails 5 more
...
In the future, ApplicationSystemTestCase should inherit from
ActionDispatch::SystemTestCase and JavaScriptApplicationSystemTestCase
could possibly be removed if the `driven_by` method works as it is
promised in Rails documentation:
http://api.rubyonrails.org/v5.2/classes/ActionDispatch/SystemTestCase.html
Consider introducing another class between
ActionDispatch::IntegrationTest and other items inheriting from it, as
the general Rails practice seems to have `ApplicationIntegrationTest`,
as we do have `ApplicationRecord` and `ApplicationController`.
2018-07-10 17:10:26 +03:00
Maciej Szlosarczyk
2bcedd0fac
Move transactional fixtures to base class
2018-07-09 12:45:48 +03:00
Maciej Szlosarczyk
e1f77c1d03
Add database cleaner to tests that cannot run in a transaction
2018-07-09 10:16:45 +03:00
Maciej Szlosarczyk
b164a58523
Add new base test class definition
2018-07-09 10:16:44 +03:00
Artur Beljajev
d064dbc11f
Replace Warden test helpers with Devise ones
2018-06-19 19:40:35 +03:00
Artur Beljajev
5061962c40
Fix test
...
#623
2018-04-12 18:01:30 +03:00
Artur Beljajev
a8046ce9cf
Remove global setting for tests
...
#623
2018-04-12 17:27:39 +03:00
Artur Beljajev
7ffc62e370
Merge branch 'master' into registry-623
...
# Conflicts:
# test/integration/admin/registrars/show_registrar_test.rb
2018-04-12 17:16:58 +03:00
Artur Beljajev
8b8b8df394
Reset WebMock after integration tests
2018-04-05 16:06:10 +03:00
Artur Beljajev
5c34d9f468
Merge branch 'master' into registry-623
2018-04-04 16:32:17 +03:00
Artur Beljajev
817a672143
Reset time after each test
2018-04-04 01:43:40 +03:00
Artur Beljajev
f8eda810f9
Use setup/teardown blocks instead of methods
2018-04-04 01:42:59 +03:00
Artur Beljajev
5cc16552ab
Backport Rails 5 test assertions
...
#799
2018-04-01 22:41:48 +03:00
Artur Beljajev
b3c4f794d0
Reformat
...
#623
2018-03-13 11:32:35 +02:00
Artur Beljajev
c47ca77ca6
Add registrar VAT rate
...
#623
2018-02-28 09:25:10 +02:00
Artur Beljajev
a39dd9cc0c
Merge branch 'use-new-codeclimate-test-reporter' into registry-660
2018-01-28 21:52:03 +02:00
Artur Beljajev
06321df413
Merge spec and test code coverage
2018-01-28 21:35:20 +02:00
Artur Beljajev
480f915a4d
Configure SimpleCov to use Rails config
2018-01-28 21:15:51 +02:00
Artur Beljajev
3759e8179b
Generate code coverage report when running tests
2018-01-28 20:15:08 +02:00
Artur Beljajev
490528ca18
Include webmock in test helper
2018-01-25 19:10:15 +02:00
Artur Beljajev
de58f71756
Turn off contact address processing in test env
...
#660
2018-01-25 14:33:52 +02:00
Artur Beljajev
e20a4499c5
Include Warden.test_reset! in test teardown
...
86aeb9a945/lib/warden/test/helpers.rb (L8)
2018-01-19 13:31:22 +02:00
Artur Beljajev
2f2ce97a76
Include minitest/mock in test helper
2017-11-12 00:54:51 +02:00
Artur Beljajev
776a059b58
Check pending migrations in test env
2017-11-09 15:24:25 +02:00
Artur Beljajev
6cd7a685f9
Add fixtures
2017-11-09 15:24:04 +02:00
Artur Beljajev
88ac207913
Include AbstractController::Translation in IntegrationTest
2017-11-03 09:55:59 +02:00
Artur Beljajev
3785f23da0
Rename FactoryGirl to FactoryBot
...
https://robots.thoughtbot.com/factory_bot
2017-11-01 15:58:49 +02:00
Artur Beljajev
5e9862cdd6
Add minitest config
2017-10-26 19:31:53 +03:00