File: null_context_test.tpl

package info (click to toggle)
ruby-rgen 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,088 kB
  • ctags: 1,538
  • sloc: ruby: 11,229; xml: 2,181; yacc: 72; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<% define 'NullContextTestBad', :for => Object do %>
	<%# this must raise an exception %>
	<% expand 'Callee', :for => nil %>
<% end %>

<% define 'NullContextTestBad2', :for => Object do %>
	<%# this must raise an exception %>
	<% expand 'Callee', :foreach => nil %>
<% end %>

<% define 'NullContextTestOk', :for => Object do %>
	<%# however this is ok %>
	<% expand 'Callee' %>
<% end %>

<% define 'Callee', :for => Object do %>
<% end %>