From a2bce5fec4e1c1751bc0d8658cf9203877163ba6 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 26 Oct 2015 20:22:27 +0800 Subject: [PATCH] Add test example --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index c0c5209..4d27482 100644 --- a/README.md +++ b/README.md @@ -66,3 +66,15 @@ View `app/views/account/new.html.erb` ``` +## Test skip captcha validation + +```rb +describe 'sign up and login', type: :feature do + before do + allow_any_instance_of(ActionController::Base).to receive(:verify_rucaptcha?).and_return(true) + end + + it { ... } +end +``` +