#-- encoding: UTF-8 #-- copyright # ChiliProject is a project management system. # # Copyright (C) 2010-2011 the ChiliProject Team # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # See doc/COPYRIGHT.rdoc for more details. #++ require File.expand_path('../../../../test_helper', __FILE__) class ChiliProject::LiquidTest < ActionView::TestCase include ApplicationHelper context "hello_world tag" do should "render 'Hello world!'" do text = "{% hello_world %}" assert_match /Hello world!/, textilizable(text) end end context "variable_list tag" do should "render a list of the current variables" do text = "{% variable_list %}" formatted = textilizable(text) assert formatted.include?('