Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

rspec fails to find defined shared example group #407

@gucki

Description

@gucki

I'm using rspec 2.6.4 with rails 3.1 and got some weird problems with shared examples. When I try to include the example using it_behaves_like "an order" rspec always tells me: Could not find shared example group named "an order" (RuntimeError).

But when I add a require like "lib/order_spec" after the include "spec_helper" I get an error it's already defined: Shared example group 'an order' already exists (ArgumentError)

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