mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Make each template rendering a separate test.
This commit is contained in:
parent
350d42be41
commit
d5dfaf6e56
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue