This repository was archived by the owner on Oct 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 stub_const 'Foo' , Class . new
1111 Foo . class_eval do
1212 include React ::Component
13+ def initialize ( native = nil )
14+ end
15+
1316 def render
1417 React . create_element ( 'div' )
1518 end
@@ -766,7 +769,7 @@ def render
766769 Foo . define_method :needs_update? do |next_params , next_state |
767770 next_params . changed?
768771 end
769- @foo = Foo . new
772+ @foo = Foo . new ( nil )
770773 end
771774
772775 it "returns false if new and old params are the same" do
@@ -794,7 +797,7 @@ def render
794797 Foo . define_method :needs_update? do |next_params , next_state |
795798 next_state . changed?
796799 end
797- @foo = Foo . new
800+ @foo = Foo . new ( nil )
798801 end
799802
800803 it "returns false if both new and old states are empty" do
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def render
109109 `var count = 0;`
110110
111111 Foo . class_eval do
112- def initialize
112+ def initialize ( native )
113113 `count = count + 1;`
114114 end
115115 def render
You can’t perform that action at this time.
0 commit comments