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

Add some RSpec / Test::Unit helpers for context verification and apply_to_user? tests #13

@ReneB

Description

@ReneB

It would be nice if Arrthorizer users could use a syntax like

SomeRole.should apply_to_user(user, context)

# or

expect(SomeRole).to apply_to_user(user, context)

and

# controller configuration test
controller.context_for(:some_action).should_match(hash_or_context)

# or

expect(controller.context_for(:some_action)).to match(hash_or_context)

with the right error messages and all.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions