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

Commit d2cd9a3

Browse files
committed
make sure updated params results in a render
1 parent 76c60b9 commit d2cd9a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/react/test/session_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ def render
6969
expect(component.params.from).to eq('outerspace')
7070
end
7171

72+
it 'causes the component to render' do
73+
component = subject.mount(Greeter, message: 'world')
74+
expect(component).to receive(:render)
75+
subject.update_params(message: 'moon')
76+
end
77+
end
78+
7279
describe '#force_update' do
7380
it 'causes the component to render' do
7481
component = subject.mount(Greeter)

0 commit comments

Comments
 (0)