Add test example
This commit is contained in:
parent
cdd2bbe530
commit
a2bce5fec4
12
README.md
12
README.md
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue