Sha256: e93b7f42dfec8a56e688b561b9a2ed672eaa8f8f06db437c12bcb31132c506c9
Contents?: true
Size: 449 Bytes
Versions: 4
Compression:
Stored size: 449 Bytes
Contents
require File.dirname(__FILE__) + '/../liquid_helper' module Redmineup class AttachmentDropTest < ActiveSupport::TestCase def setup @attachment = attachments(:attachment_001) @user = @attachment.author @liquid_render = LiquidRender.new('attachment' => Liquid::AttachmentDrop.new(@attachment)) end def test_author assert_equal @user.name, @liquid_render.render('{{ attachment.author.name }}') end end end
Version data entries
4 entries across 4 versions & 1 rubygems