Skip to content

Add a meta data option to use timecop #2

@acant

Description

@acant

Something like this:

describe '#method', timecopped: DateTime.current do
end

This would set the :now variable and wrap subject execution with timecopped.

This is similar to a feature which is currently in PR#119 on the timecop gem.

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