Skip to content

Commit 03f478d

Browse files
committed
Split file for current raap test
1 parent a7178b1 commit 03f478d

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ task :typecheck_test => :compile do
139139
end
140140

141141
task :raap => :compile do
142-
sh %q[ruby test/raap.rb | xargs bundle exec raap -r digest/bubblebabble --library digest --allow-private]
142+
sh "ruby test/raap/core.rb"
143+
sh "ruby test/raap/digest.rb"
143144
end
144145

145146
task :rubocop do

test/raap/core.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'raap'
2+
3+
argv = [
4+
'--size-by', '2',
5+
'--allow-private'
6+
]
7+
8+
argv << 'Set[Integer]'
9+
argv << 'Enumerable[Integer]#to_set'
10+
11+
RaaP::CLI.new(argv).load.run

test/raap.rb renamed to test/raap/digest.rb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# Specify the class/module and method names to be executed by RaaP.
2-
# By prefixing with `!`, you can skip testing a method.
1+
require 'raap'
32

4-
puts 'Set[Integer]'
5-
puts 'Enumerable[Integer]#to_set'
3+
argv = [
4+
'-r', 'digest/bubblebabble',
5+
'--library', 'digest',
6+
'--size-by', '2',
7+
'--allow-private'
8+
]
69

710
%w[
811
MD5
@@ -18,7 +21,7 @@
1821
digest
1922
hexdigest
2023
].each do |singleton_method|
21-
puts "Digest::#{klass}.#{singleton_method}"
24+
argv << "Digest::#{klass}.#{singleton_method}"
2225
end
2326

2427
%w[
@@ -47,6 +50,8 @@
4750
finish
4851
initialize_copy
4952
].each do |instance_method|
50-
puts "Digest::#{klass}##{instance_method}"
53+
argv << "Digest::#{klass}##{instance_method}"
5154
end
5255
end
56+
57+
RaaP::CLI.new(argv).load.run

0 commit comments

Comments
 (0)