Skip to content

Support for nested matchers in assert_template #77

@klondikemarlen

Description

@klondikemarlen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions