Commit graph

6 commits

Author SHA1 Message Date
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
Artur Beljajev
f8eda810f9 Use setup/teardown blocks instead of methods 2018-04-04 01:42:59 +03:00
Artur Beljajev
443485d5d6 Improve test
#694
2018-02-17 02:48:45 +02:00
Artur Beljajev
59ceb9c51a Hard code test data
#694
2018-02-17 02:42:22 +02:00
Artur Beljajev
6d991387a2 Do not use warden helper in EPP tests
#694
2018-02-16 18:42:51 +02:00
Artur Beljajev
56576d6590 Update tests
#660
2018-01-29 02:22:28 +02:00