Skip to content

View specs: render :locals => {...} #45

@jbpros

Description

@jbpros

Hi!

I'd like to spec a partial and I need to pass local variables to it. The render method in view specs does not allow any parameters, as it was the case with Rspec1. Is there another way to set locals for the view or is it currently missing from Rspec2?

Thanks!

Julien.

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