spec/react/tutorial/tutorial_spec.rb in hyper-react-0.10.0 vs spec/react/tutorial/tutorial_spec.rb in hyper-react-0.11.0

- old
+ new

@@ -8,11 +8,11 @@ end end describe 'An Example from the react.rb doc', type: :component do it 'produces the correct result' do - expect(HelloMessage).to render('<div>Hello World!</div>') + expect(HelloMessage).to render_static_html('<div>Hello World!</div>') end end class HelloMessage2 include React::Component @@ -22,10 +22,10 @@ end end describe 'Adding state to a component (second tutorial example)', type: :component do it "produces the correct result" do - expect(HelloMessage2).to render('<div>Hello @catmando</div>') + expect(HelloMessage2).to render_static_html('<div>Hello @catmando</div>') end it 'renders to the document' do ele = `document.createElement('div')` React.render(React.create_element(HelloMessage2), ele)