Skip to content

Running rspec from within the spec directory #779

@gerases

Description

@gerases

Hi, it seems that in order to run rspec-puppet tests, i need to be outside of the spec directory. When I'm running rspec from within the spec directory (./spec, ./spec/classes, etc), I get errors like these:

Failure/Error: it { is_expected.to compile }

     NameError:
       undefined local variable or method `compile'

I've tried to look through the code to understand why but wasn't very successful.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions