diff options
Diffstat (limited to 'test/scanners/rhtml')
-rw-r--r-- | test/scanners/rhtml/day.in.rhtml | 26 | ||||
-rw-r--r-- | test/scanners/rhtml/day.out.raydebug | 26 | ||||
-rw-r--r-- | test/scanners/rhtml/suite.rb | 2 |
3 files changed, 54 insertions, 0 deletions
diff --git a/test/scanners/rhtml/day.in.rhtml b/test/scanners/rhtml/day.in.rhtml new file mode 100644 index 0000000..12ebe82 --- /dev/null +++ b/test/scanners/rhtml/day.in.rhtml @@ -0,0 +1,26 @@ +<% day, auftritte = *day -%>
+<%
+ for auftritt in auftritte
+-%>
+
+<tr>
+ <td class="pplan_datum">
+ <%= colorize day.to_s(:dots) if day %>
+ <% if day and day.wday == 6 %><br /><em>Samstag</em><% end %>
+ </td>
+ <td class="pplan_zeit">
+ <%= colorize auftritt.time %>
+ </td>
+ <td class="pplan_stueck">
+ <%= colorize auftritt.program %>
+ <%= link_to 'E', :controller => 'admin/auftritte', :action => :edit, :id => auftritt %>
+ </td>
+ <td class="pplan_besetzung">
+ <%= colorize(auftritt.place, 'Ort: ') + '<br />' unless auftritt.place.blank? %>
+ </td>
+</tr>
+
+<%
+ day = nil
+ end
+-%>
diff --git a/test/scanners/rhtml/day.out.raydebug b/test/scanners/rhtml/day.out.raydebug new file mode 100644 index 0000000..7440d64 --- /dev/null +++ b/test/scanners/rhtml/day.out.raydebug @@ -0,0 +1,26 @@ +inline<delimiter(<%) ident(day)operator(,) ident(auftritte) operator(=) operator(*)ident(day) delimiter(-%>)> +inline<delimiter(<%) + reserved(for) ident(auftritt) reserved(in) ident(auftritte) +delimiter(-%>)> + +tag(<tr>) + tag(<td) attribute_name(class)operator(=)string<delimiter(")content(pplan_datum)delimiter(")>tag(>) + inline<delimiter(<%=) ident(colorize) ident(day)operator(.)ident(to_s)operator(()symbol(:dots)operator(\)) reserved(if) ident(day) delimiter(%>)> + inline<delimiter(<%) reserved(if) ident(day) reserved(and) ident(day)operator(.)ident(wday) operator(==) integer(6) delimiter(%>)>tag(<br) tag(/>)tag(<em>)plain(Samstag)tag(</em>)inline<delimiter(<%) reserved(end) delimiter(%>)> + tag(</td>) + tag(<td) attribute_name(class)operator(=)string<delimiter(")content(pplan_zeit)delimiter(")>tag(>) + inline<delimiter(<%=) ident(colorize) ident(auftritt)operator(.)ident(time) delimiter(%>)> + tag(</td>) + tag(<td) attribute_name(class)operator(=)string<delimiter(")content(pplan_stueck)delimiter(")>tag(>) + inline<delimiter(<%=) ident(colorize) ident(auftritt)operator(.)ident(program) delimiter(%>)> + inline<delimiter(<%=) ident(link_to) string<delimiter(')content(E)delimiter(')>operator(,) symbol(:controller) operator(=)operator(>) string<delimiter(')content(admin/auftritte)delimiter(')>operator(,) symbol(:action) operator(=)operator(>) symbol(:edit)operator(,) symbol(:id) operator(=)operator(>) ident(auftritt) delimiter(%>)> + tag(</td>) + tag(<td) attribute_name(class)operator(=)string<delimiter(")content(pplan_besetzung)delimiter(")>tag(>) + inline<delimiter(<%=) ident(colorize)operator(()ident(auftritt)operator(.)ident(place)operator(,) string<delimiter(')content(Ort: )delimiter(')>operator(\)) operator(+) string<delimiter(')content(<br />)delimiter(')> reserved(unless) ident(auftritt)operator(.)ident(place)operator(.)ident(blank?) delimiter(%>)> + tag(</td>) +tag(</tr>) + +inline<delimiter(<%) + ident(day) operator(=) pre_constant(nil) + reserved(end) +delimiter(-%>)> diff --git a/test/scanners/rhtml/suite.rb b/test/scanners/rhtml/suite.rb new file mode 100644 index 0000000..aa10fff --- /dev/null +++ b/test/scanners/rhtml/suite.rb @@ -0,0 +1,2 @@ +class RHTML < CodeRay::TestCase +end |