Skip to content

Commit

Permalink
[Truffle] Tag failing erb specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Feb 9, 2015
1 parent 7e8bda7 commit c97b099
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 1 deletion.
@@ -0,0 +1 @@
fails:ERB::DefMethod.def_erb_method define method to render eRuby object as an instance method of current module
2 changes: 2 additions & 0 deletions spec/truffle/tags/rubysl/rubysl-erb/spec/filename_tags.txt
@@ -0,0 +1,2 @@
fails:ERB#filename raises an exception if there are errors processing content
fails:ERB#filename uses '(erb)' as filename when filename is not set
11 changes: 11 additions & 0 deletions spec/truffle/tags/rubysl/rubysl-erb/spec/new_tags.txt
@@ -0,0 +1,11 @@
fails:ERB.new compiles eRuby script into ruby code when trim mode is 0 or not specified
fails:"ERB.new removes '\n' when trim_mode is 1 or '>'"
fails:"ERB.new removes spaces at beginning of line and '\n' when trim_mode is 2 or '<>'"
fails:ERB.new removes spaces around '<%- -%>' when trim_mode is '-'
fails:ERB.new regards lines starting with '%' as '<% ... %>' when trim_mode is '%'
fails:ERB.new regards lines starting with '%' as '<% ... %>' and remove "\n" when trim_mode is '%>'
fails:ERB.new regard lines starting with '%' as '<% ... %>' and remove "\n" when trim_mode is '%<>'
fails:ERB.new regard lines starting with '%' as '<% ... %>' and spaces around '<%- -%>' when trim_mode is '%-'
fails:ERB.new accepts a safe level as second argument
fails:ERB.new ignores '<%# ... %>'
fails:ERB.new forget local variables defined previous one
3 changes: 3 additions & 0 deletions spec/truffle/tags/rubysl/rubysl-erb/spec/result_tags.txt
@@ -0,0 +1,3 @@
fails:ERB#result is not able to h() or u() unless including ERB::Util
fails:ERB#result is able to h() or u() if ERB::Util is included
fails:ERB#result use TOPLEVEL_BINDING if binding is not passed
4 changes: 4 additions & 0 deletions spec/truffle/tags/rubysl/rubysl-erb/spec/run_tags.txt
@@ -0,0 +1,4 @@
fails:ERB#run print the result of compiled ruby code
fails:ERB#run is not able to h() or u() unless including ERB::Util
fails:ERB#run is able to h() or u() if ERB::Util is included
fails:ERB#run use TOPLEVEL_BINDING if binding is not passed
5 changes: 5 additions & 0 deletions spec/truffle/tags/rubysl/rubysl-erb/spec/util/h_tags.txt
@@ -0,0 +1,5 @@
fails:ERB::Util.h escape (& < > " ') to (&amp; &lt; &gt; &quot; &#39;)
fails:ERB::Util.h not escape characters except (& < > " ')
fails:ERB::Util.h return empty string when argument is nil
fails:ERB::Util.h returns string when argument is number
fails:ERB::Util.h returns string when argument is boolean
@@ -0,0 +1,5 @@
fails:ERB::Util.html_escape escape (& < > " ') to (&amp; &lt; &gt; &quot; &#39;)
fails:ERB::Util.html_escape not escape characters except (& < > " ')
fails:ERB::Util.html_escape return empty string when argument is nil
fails:ERB::Util.html_escape returns string when argument is number
fails:ERB::Util.html_escape returns string when argument is boolean
5 changes: 5 additions & 0 deletions spec/truffle/tags/rubysl/rubysl-erb/spec/util/u_tags.txt
@@ -0,0 +1,5 @@
fails:ERB::Util.u encode characters
fails:ERB::Util.u encode unicode string
fails:ERB::Util.u returns empty string when argument is nil
fails:ERB::Util.u returns string when argument is number
fails:ERB::Util.u returns string when argument is boolean
@@ -0,0 +1,5 @@
fails:ERB::Util.url_encode encode characters
fails:ERB::Util.url_encode encode unicode string
fails:ERB::Util.url_encode returns empty string when argument is nil
fails:ERB::Util.url_encode returns string when argument is number
fails:ERB::Util.url_encode returns string when argument is boolean
3 changes: 2 additions & 1 deletion spec/truffle/truffle.mspec
Expand Up @@ -88,11 +88,12 @@ class MSpecScript
set :rubysl, [
"spec/truffle/spec/rubysl/rubysl-erb/spec",
"spec/truffle/spec/rubysl/rubysl-set/spec",
"spec/truffle/spec/rubysl/rubysl-erb/spec",

# Can't load these - so tags aren't enough to exclude them. The problem is
# either fixtures or 'before' blocks.

"^spec/truffle/spec/rubysl/rubysl-erb/spec"
"^spec/truffle/spec/rubysl/rubysl-erb/spec/new_spec.rb"
]

set :tags_patterns, [
Expand Down

0 comments on commit c97b099

Please sign in to comment.