1
+ # frozen_string_literal: true
2
+
1
3
require_relative '../spec_helper'
2
4
3
5
RSpec . describe Oblivion ::Uglifier do
@@ -122,7 +124,11 @@ def method; end
122
124
# RUBY
123
125
# }
124
126
# let(:expected_body) {
125
- # a_node(:send, nil, method_definer, an_object_not_eq_to(s(:sym, :method)), an_object_not_eq_to(s(:sym, :method2)))
127
+ # a_node(:send,
128
+ # nil,
129
+ # method_definer,
130
+ # an_object_not_eq_to(s(:sym, :method)),
131
+ # an_object_not_eq_to(s(:sym, :method2)))
126
132
# }
127
133
128
134
# include_examples 'expected class body'
@@ -145,8 +151,8 @@ def method; end
145
151
146
152
let ( :expected_body ) {
147
153
a_node ( :class ,
148
- s ( :const , nil , :Inline ) , nil ,
149
- including ( a_method_definition ( an_object_not_eq_to ( :method ) ) ) )
154
+ s ( :const , nil , :Inline ) , nil ,
155
+ including ( a_method_definition ( an_object_not_eq_to ( :method ) ) ) )
150
156
}
151
157
152
158
include_examples 'expected class body'
@@ -164,7 +170,7 @@ def method; end
164
170
165
171
let ( :expected_body ) {
166
172
a_node ( :sclass , s ( :self ) ,
167
- including ( a_method_definition ( an_object_not_eq_to ( :method ) ) ) )
173
+ including ( a_method_definition ( an_object_not_eq_to ( :method ) ) ) )
168
174
}
169
175
170
176
include_examples 'expected class body'
@@ -254,8 +260,7 @@ def method; end
254
260
s ( :block ,
255
261
s ( :send , s ( :begin , s ( :irange , s ( :int , 1 ) , s ( :int , 10 ) ) ) , :each ) ,
256
262
s ( :args , s ( :procarg0 , s ( :arg , :i ) ) ) ,
257
- method_call_with_new_name
258
- )
263
+ method_call_with_new_name )
259
264
}
260
265
261
266
include_examples 'expected method body'
0 commit comments