bin/generate_test_tpl/spec.rb in ruby-vpi-11.1.1 vs bin/generate_test_tpl/spec.rb in ruby-vpi-12.0.0
- old
+ new
@@ -9,17 +9,18 @@
<%= aOutputInfo.designClassName %>.reset!
end
<% aModuleInfo.ports.each do |port| %>
def test_<%= port.name %>
+ # assert <%= aOutputInfo.designClassName %>.<%= port.name %> ..., "<%= port.name %> should ..."
end
<% end %>
end
<%
- when :rSpec
+ when :rSpec, :tSpec
%>
-context "A new <%= aOutputInfo.designClassName %>" do
+context "A resetted <%= aOutputInfo.designClassName %>" do
setup do
<%= aOutputInfo.designClassName %>.reset!
end
specify "should ..." do
@@ -27,13 +28,10 @@
end
end
<%
else
%>
-class <%= aOutputInfo.specClassName %>
- def initialize
- <%= aOutputInfo.designClassName %>.reset!
- end
-end
+<%= aOutputInfo.designClassName %>.reset!
+# raise "should ..." unless <%= aOutputInfo.designClassName %> ...
<%
end
%>