Permalink
Browse files

More tests which cover precompiled haml code

  • Loading branch information...
retoo committed Sep 23, 2009
1 parent 2b661f1 commit ccd76043ef74ddcd4158d0cb3f296dc2963dd3f3
Showing with 8 additions and 1 deletion.
  1. +7 −1 test/cases/new.rb
  2. +1 −0 test/ruby_gettext_extractor_test.rb
View
@@ -4,4 +4,10 @@ def _(arg)
x = _"baz"
puts _("foo" + "bar" + "baz")
puts "Hello #{_'world'} #{_("foo")} #{"#{_("ruby_is_wicked")}"}"
-puts _("foo" + ("cli" + "cla" + "clu") + ("bli" + ("buz" + "biz")))
+puts _("foo" + ("cli" + "cla" + "clu") + ("bli" + ("buz" + "biz")))
+url = "/flash/fff.swf?mtitle=#{_('Movie missing')}&file=/flash/send_your_movie.flv&preview_img=/images/no_cover.gif"
+
+# haml output of code above
+_hamlout.push_text("asdfasfasfd\n", 0, false); def _(m); return m; end;
+ url = "/flash/fff.swf?mtitle=#{_('Movie missing')}&file=/flash/send_your_movie.flv&preview_img=/images/no_cover.gif";
+_hamlout.push_text("asfasdf\n", 0, false);
@@ -83,5 +83,6 @@ def test_new_cases
assert_equal(["foo", "test/cases/new.rb:6"], ary[3])
assert_equal(["ruby_is_wicked", "test/cases/new.rb:6"], ary[4])
assert_equal(["foocliclaclublibuzbiz", "test/cases/new.rb:7"], ary[5])
+ assert_equal(["Movie missing", "test/cases/new.rb:8", "test/cases/new.rb:12"], ary[6])
end
end

0 comments on commit ccd7604

Please sign in to comment.