added test for jobs, validators and helper

This commit is contained in:
Oleg Hasjanov 2021-03-03 18:00:14 +02:00
parent d53d4f2412
commit 14b8dd6ade
6 changed files with 170 additions and 4 deletions

View file

@ -0,0 +1,14 @@
require 'test_helper'
class ApplicationHelperTest < ActionView::TestCase
def test_env_style_when_pic_present
assert_dom_equal %{<body style={"background-image: url(#{image_path("registrar/bg-#{unstable_env}.png")});"}>},
%{<body style={"#{env_style}"}>}
end
def test_env_style_return_nil
env_style = ''
assert_dom_equal %{<body style=''>},
%{<body style={"#{env_style}"}>}
end
end