mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Feature tests for ip whitelist
This commit is contained in:
parent
ae746be970
commit
292590cbbf
4 changed files with 69 additions and 5 deletions
|
@ -15,14 +15,14 @@ feature 'Api users', type: :feature do
|
|||
|
||||
it 'should redirect to login path' do
|
||||
visit admin_api_user_url(@api_user)
|
||||
|
||||
|
||||
current_path.should == '/admin/login'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context 'as logged in user' do
|
||||
it 'should show index of contacts' do
|
||||
it 'should show index of api users' do
|
||||
sign_in @user
|
||||
visit admin_api_users_url
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue