mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
fixed tests: updated gems; improve company register status job and test stability
- Refactor CompanyRegisterStatusJob for better readability and error handling - Update whitelisted_companies to use JSON parsing with fallback - Fix company register status check in tests with proper mock data - Remove debug logging statements - Add null check for domain status notes - Update test dependencies (Capybara and Selenium) for better stability
This commit is contained in:
parent
34e13ffb40
commit
292a4fddc5
6 changed files with 119 additions and 37 deletions
|
@ -1,11 +1,12 @@
|
|||
require 'test_helper'
|
||||
require 'minitest/mock'
|
||||
|
||||
class FormHelperTest < ActionView::TestCase
|
||||
def test_legal_document_field
|
||||
meth = MiniTest::Mock.new
|
||||
meth = Minitest::Mock.new
|
||||
returned_legal_document_field = ApplicationController.helpers.legal_document_field('Hello', meth)
|
||||
|
||||
assert returned_legal_document_field.include? 'data-legal-document="true"'
|
||||
assert returned_legal_document_field.include? 'accept=".pdf,.asice,.asics,.sce,.scs,.adoc,.edoc,.bdoc,.zip,.rar,.gz,.tar,.7z,.odt,.doc,.docx"'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue