Rakefile in rbs-3.2.2 vs Rakefile in rbs-3.3.0.pre.1
- old
+ new
@@ -82,15 +82,16 @@
end
end
task :stdlib_test => :compile do
test_files = FileList["test/stdlib/**/*_test.rb"].reject do |path|
- path =~ %r{Ractor}
+ path =~ %r{Ractor} || path =~ %r{Encoding}
end
sh "#{ruby} -Ilib #{bin}/test_runner.rb #{test_files.join(' ')}"
# TODO: Ractor tests need to be run in a separate process
sh "#{ruby} -Ilib #{bin}/test_runner.rb test/stdlib/Ractor_test.rb"
+ sh "#{ruby} -Ilib #{bin}/test_runner.rb test/stdlib/Encoding_test.rb"
end
task :rubocop do
sh "rubocop --parallel"
end
@@ -155,17 +156,18 @@
include TypeAssertions
# library "pathname", "securerandom" # Declare library signatures to load
testing "singleton(::<%= target %>)"
- <%- class_methods.each do |method_name, definition| %>
+ <%- class_methods.each do |method_name, definition| -%>
def test_<%= test_name_for(method_name) %>
<%- definition.method_types.each do |method_type| -%>
- assert_send_type "<%= method_type %>",
- <%= target %>, :<%= method_name %>
+ assert_send_type "<%= method_type %>",
+ <%= target %>, :<%= method_name %>
<%- end -%>
end
+
<%- end -%>
end
<%- end -%>
<%- unless instance_methods.empty? -%>
@@ -173,16 +175,17 @@
include TypeAssertions
# library "pathname", "securerandom" # Declare library signatures to load
testing "::<%= target %>"
- <%- instance_methods.each do |method_name, definition| %>
+ <%- instance_methods.each do |method_name, definition| -%>
def test_<%= test_name_for(method_name) %>
<%- definition.method_types.each do |method_type| -%>
- assert_send_type "<%= method_type %>",
- <%= target %>.new, :<%= method_name %>
+ assert_send_type "<%= method_type %>",
+ <%= target %>.new, :<%= method_name %>
<%- end -%>
end
+
<%- end -%>
end
<%- end -%>
ERB
end