mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
25 lines
590 B
Ruby
25 lines
590 B
Ruby
require 'rails_helper'
|
|
|
|
feature 'Admin contact', type: :feature do
|
|
before :all do
|
|
@user = Fabricate(:admin_user)
|
|
@contact = Fabricate(:contact, name: 'Mr John')
|
|
end
|
|
|
|
it 'should show index of contacts' do
|
|
sign_in @user
|
|
visit admin_contacts_url
|
|
|
|
page.should have_content('Mr John')
|
|
end
|
|
|
|
it 'should show correct contact creator' do
|
|
sign_in @user
|
|
visit admin_contacts_url
|
|
|
|
click_link('Mr John')
|
|
# initially it's created by unknown,
|
|
# indivitually running it's created by autotest
|
|
page.should have_content(/by [unknown|autotest]/)
|
|
end
|
|
end
|