require 'test_helper'
class RendererTest < ActiveSupport::TestCase
test 'doesn\'t change html without blocks' do
html = Inverter::Renderer.render('
Test
', {})
assert_equal('Test
', html)
end
test 'change html with blocks' do
html = Inverter::Renderer.render('Hero Text
', {'Test Block' => 'Test Value'})
assert_equal("\nTest Value\n
", html)
end
end