Sha256: 6811d4c3220487540dab52b8833f8c1417f9a2289b9cc8811563f2cd1350bb87

Contents?: true

Size: 810 Bytes

Versions: 11

Compression:

Stored size: 810 Bytes

Contents

# This file is a behavioral specification for the design under test.

<%
  case aOutputInfo.specFormat
    when :xUnit
%>
class <%= aOutputInfo.specClassName %> < Test::Unit::TestCase
  def setup
    <%= 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, :tSpec
%>
context "A resetted <%= aOutputInfo.designClassName %>" do
  setup do
    <%= aOutputInfo.designClassName %>.reset!
  end

  specify "should ..." do
    # <%= aOutputInfo.designClassName %>.should ...
  end
end
<%
  else
%>
<%= aOutputInfo.designClassName %>.reset!
# raise "should ..." unless <%= aOutputInfo.designClassName %> ...
<%
  end
%>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby-vpi-12.0.1 bin/generate_test_tpl/spec.rb
ruby-vpi-12.0.0 bin/generate_test_tpl/spec.rb
ruby-vpi-14.0.0 bin/generate_test_tpl/spec.rb
ruby-vpi-12.0.2 bin/generate_test_tpl/spec.rb
ruby-vpi-13.0.0 bin/generate_test_tpl/spec.rb
ruby-vpi-12.1.0 bin/generate_test_tpl/spec.rb
ruby-vpi-15.0.0 bin/generate_test_tpl/spec.rb
ruby-vpi-15.0.2 bin/generate_test_tpl/spec.rb
ruby-vpi-15.0.1 bin/generate_test_tpl/spec.rb
ruby-vpi-16.0.1 bin/generate_test_tpl/spec.rb
ruby-vpi-16.0.0 bin/generate_test_tpl/spec.rb