test/functional/eft_16_if.rb in ruote-2.3.0.1 vs test/functional/eft_16_if.rb in ruote-2.3.0.2
- old
+ new
@@ -18,12 +18,10 @@
echo 'then'
echo 'else'
end
end
- #noisy
-
assert_trace('then', pdef)
end
def test_else
@@ -32,12 +30,10 @@
echo 'then'
echo 'else'
end
end
- #noisy
-
assert_trace('else', pdef)
end
def test_missing_then
@@ -47,12 +43,10 @@
end
echo 'done.'
end
end
- #noisy
-
assert_trace('done.', pdef)
end
def test_missing_else
@@ -63,12 +57,10 @@
end
echo 'done.'
end
end
- #noisy
-
assert_trace('done.', pdef)
end
def test_equals_true
@@ -78,12 +70,10 @@
echo 'then'
echo 'else'
end
end
- #noisy
-
assert_trace('then', pdef)
end
def test_equals_false
@@ -93,12 +83,10 @@
echo 'then'
echo 'else'
end
end
- #noisy
-
assert_trace('else', pdef)
end
def test_equals_true_no_then
@@ -109,12 +97,10 @@
end
echo 'done.'
end
end
- #noisy
-
assert_trace('done.', pdef)
end
def test_attribute_text
@@ -137,12 +123,34 @@
echo 'else'
end
end
end
- #noisy
-
assert_trace(%w[ then else else else ], pdef)
+ end
+
+ # For ruote-mon and its dot/dollar escaping scheme.
+ #
+ # (Fukuoka Ruby Kaigi 01 2012/12/01)
+ #
+ def test_attribute_text_and_dots
+
+ @dashboard.context['ruby_eval_allowed'] = true
+
+ pdef = Ruote.define do
+ _if '${r:"".length == 0}' do
+ #_if :test => '${r:"".length == 0}' do
+ echo 'a'
+ echo 'b'
+ end
+ _if '${r:"".length == 1}' do
+ #_if :test => '${r:"".length == 1}' do
+ echo 'a'
+ echo 'b'
+ end
+ end
+
+ assert_trace(%w[ a b ], pdef)
end
def test_xml_equals
require_json