Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 8a6236f

Browse files
committed
Fix DSL spec
ele raise const missing error, something is wrong with the `param` to automatically declare method, but given that we are going to deprecate this behavior, let’s make the test simpler and decoupled from that.
1 parent 72f22f1 commit 8a6236f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/react/dsl_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,10 @@ def render
208208
stub_const 'X2', Class.new
209209
X2.class_eval do
210210
include React::Component
211-
param :ele
212211
def render
213212
div do
214-
ele.render
215-
ele.render
213+
params[:ele].render
214+
params[:ele].render
216215
end
217216
end
218217
end

0 commit comments

Comments
 (0)