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

Disable validation in test environment #19

@SideofClouds

Description

@SideofClouds

There should be an option to disable the validation entirely when testing (make it always return true) in the test environment or in the config file. I'm using Rspec.
For now in my controller specs i just use "controller.stub(:captcha_valid?).and_return(true)" but for some reason that doesn't work in my feature spec ... and I tried writing it in many ways:
allow(UserRegistrationController).to receive(:captcha_valid?).and_return true
UserRegistrationController.stub(:captcha_valid?).and_return(true)
... not working.
Some help would be greatly appreciated.
Thank you,
Dan

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