mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Merge branch 'master' into migrate-fabricators-to-factory-bot-factories
# Conflicts: # Gemfile # lib/tasks/dev.rake # spec/models/contact_spec.rb
This commit is contained in:
commit
be959a8471
59 changed files with 2505 additions and 480 deletions
12
spec/features/admin/contacts/list_spec.rb
Normal file
12
spec/features/admin/contacts/list_spec.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.feature 'Contact list', settings: false do
|
||||
background do
|
||||
sign_in_to_admin_area
|
||||
end
|
||||
|
||||
it 'is visible' do
|
||||
visit admin_contacts_path
|
||||
expect(page).to have_css('.contacts')
|
||||
end
|
||||
end
|
15
spec/features/registrar/contacts/list_spec.rb
Normal file
15
spec/features/registrar/contacts/list_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.feature 'Contact list', settings: false do
|
||||
given!(:registrar) { create(:registrar) }
|
||||
given!(:contact) { create(:contact, registrar: registrar) }
|
||||
|
||||
background do
|
||||
sign_in_to_registrar_area(user: create(:api_user_with_unlimited_balance, registrar: registrar))
|
||||
end
|
||||
|
||||
it 'is visible' do
|
||||
visit registrar_contacts_path
|
||||
expect(page).to have_css('.contacts')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue