Add test example

This commit is contained in:
Jason Lee 2015-10-26 20:22:27 +08:00
parent cdd2bbe530
commit a2bce5fec4
1 changed files with 12 additions and 0 deletions

View File

@ -66,3 +66,15 @@ View `app/views/account/new.html.erb`
</form>
```
## 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
```