I would expect
render(
partial: 'path/to/partial',
locals: {
arg1: 'value-for-arg1',
arg2: 'value-for-arg2',
arg3: 'value-for-arg3',
},
)
expect(view).to render_template(
partial: 'path/to/partial',
locals: {
arg1: 'value-for-arg1',
arg2: 'value-for-arg2',
arg3: anything,
},
)
to work if arg1, and arg2 are correct.
Instead the code only seems to work when I also pass the correct value for arg3.
It seems like assert_template isn't accepting nested matchers?