Skip to content

View helpers not available in view specs #119

@wincent

Description

@wincent

Just noticed that view helpers aren't automatically included in views like they were in RSpec 1, so you need to include them explicitly in all your view specs:

before do
  view.extend ApplicationHelper
  view.extend FooHelper
end

Is this intentional or still on the "to do" list?

Cheers,
Wincent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions