mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Unconditionally include Rails 3 test
Do not check for Rails >= 3 before including test. Earlier Rails versions are no longer supported.
This commit is contained in:
parent
f9b83de990
commit
a69f439b6e
1 changed files with 2 additions and 5 deletions
|
@ -214,10 +214,8 @@ END
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ActionPack::VERSION::MAJOR >= 3
|
def test_form_builder_label_with_block
|
||||||
# Rails 3's #label helper can take a block.
|
assert_equal(<<HTML, render(<<HAML, :action_view))
|
||||||
def test_form_builder_label_with_block
|
|
||||||
assert_equal(<<HTML, render(<<HAML, :action_view))
|
|
||||||
<form accept-charset="UTF-8" action="" method="post">#{rails_form_opener}
|
<form accept-charset="UTF-8" action="" method="post">#{rails_form_opener}
|
||||||
<label for="article_title">Block content
|
<label for="article_title">Block content
|
||||||
</label>
|
</label>
|
||||||
|
@ -227,7 +225,6 @@ HTML
|
||||||
= f.label :title do
|
= f.label :title do
|
||||||
Block content
|
Block content
|
||||||
HAML
|
HAML
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
## XSS Protection Tests
|
## XSS Protection Tests
|
||||||
|
|
Loading…
Reference in a new issue