mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 13:06:18 +02:00
- 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
12 lines
492 B
Ruby
12 lines
492 B
Ruby
require 'test_helper'
|
|
require 'minitest/mock'
|
|
|
|
class FormHelperTest < ActionView::TestCase
|
|
def test_legal_document_field
|
|
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
|