[Sass] Make each template rendering a separate test.

This commit is contained in:
Nathan Weizenbaum 2009-07-19 14:56:11 -07:00
parent 350d42be41
commit d5dfaf6e56
1 changed files with 4 additions and 2 deletions

View File

@ -22,8 +22,10 @@ class SassPluginTest < Test::Unit::TestCase
FileUtils.rm_r tempfile_loc(nil,"more_")
end
def test_templates_should_render_correctly
@@templates.each { |name| assert_renders_correctly(name) }
@@templates.each do |name|
define_method("test_template_renders_correctly (#{name})") do
assert_renders_correctly(name)
end
end
def test_no_update