Commit 4111a9f 1 parent db180d3 commit 4111a9f Copy full SHA for 4111a9f
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,21 @@ class AllEncodingTest < RegularTest
22
22
} . freeze
23
23
24
24
ENC_TESTS . each_pair do |abbr , name |
25
- define_method "test_#{ abbr } " do
25
+ define_method : "test_#{ abbr } " do
26
26
require_relative "encoding_test/#{ abbr } "
27
27
self . class . class_eval { include EncodingTest }
28
28
29
- str = send ( "#{ abbr } _string" )
29
+ str = send ( : "#{ abbr } _string")
30
30
31
31
assert_equal name , str . encoding . to_s
32
32
33
- ast = EncodingTest . instance_method ( "#{ abbr } _string" ) . to_ast
33
+ ast = EncodingTest . instance_method ( : "#{ abbr } _string") . to_ast
34
34
35
35
assert_equal "UTF-8" , no_arg_def_return ( ast ) . encoding . to_s
36
36
37
37
LiveAST . load "./test/encoding_test/#{ abbr } .rb"
38
38
39
- ast = EncodingTest . instance_method ( "#{ abbr } _string" ) . to_ast
39
+ ast = EncodingTest . instance_method ( : "#{ abbr } _string") . to_ast
40
40
41
41
assert_equal "UTF-8" , no_arg_def_return ( ast ) . encoding . to_s
42
42
end
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def assert_nothing_raised
42
42
empty equal in_delta in_epsilon includes instance_of
43
43
kind_of match nil operator respond_to same
44
44
) . each { |name |
45
- alias_method "assert_not_#{ name } " , "refute_#{ name } "
45
+ alias_method : "assert_not_#{ name } ", "refute_#{ name } "
46
46
}
47
47
end
48
48
You can’t perform that action at this time.
0 commit comments