Skip to content

Instantly share code, notes, and snippets.

Created August 3, 2012 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3247423 to your computer and use it in GitHub Desktop.
Save anonymous/3247423 to your computer and use it in GitHub Desktop.
def test_with_numbers
pdef = Ruote.define do
set 'commission' => 2.310000
set 'scommission' => '2.310000'
echo 'a', :if => '${f:commission} > 0'
echo '.'
echo 'b', :unless => '${f:commission} > 0'
echo '.'
echo 'c', :if => '${f:scommission} > 0'
echo '.'
echo 'c', :unless => '${f:scommission} > 0'
end
wfid = @dashboard.launch(pdef)
r = @dashboard.wait_for(wfid)
assert_equal 'terminated', r['action']
assert_equal 'a..c.', @tracer.to_a.join
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment