lib/spiker/generators/templates/simple_app.rb in spiker-0.1.0 vs lib/spiker/generators/templates/simple_app.rb in spiker-0.1.1
- old
+ new
@@ -2,16 +2,16 @@
require 'minitest/autorun'
require 'minitest/reporters'
Minitest::Reporters.use!
-class <%= name.capitalize %>Test < Minitest::Test
+class <%= config[:name_as_class] %>Test < Minitest::Test
def test_that_it_works
assert true
end
end
-class <%= name.capitalize %>
+class <%= config[:name_as_class] %>
attr_accessor :name
def initialize(name:)
@name = name
end
end