update spec

This commit is contained in:
Priit Tamboom 2014-11-25 16:26:19 +02:00
parent 3b595cb839
commit 623fd25134
2 changed files with 3 additions and 3 deletions

View file

@ -14,9 +14,9 @@ feature 'Sessions', type: :feature do
scenario 'Admin logs in' do
visit root_path
expect(page).to have_button('ID card (gitlab)')
expect(page).to have_button('ID card (user1)')
click_on 'ID card (gitlab)'
click_on 'ID card (user1)'
expect(page).to have_text('Welcome!')
uri = URI.parse(current_url)

View file

@ -2,7 +2,7 @@ require 'rails_helper'
feature 'Setting management', type: :feature do
let(:zone) { Fabricate(:registrar) }
let(:zone_user) { Fabricate(:user, registrar: zone, username: 'gitlab', admin: true, identity_code: '37810013087') }
let(:zone_user) { Fabricate(:user, registrar: zone, username: 'user1', admin: true, identity_code: '37810013087') }
background { create_settings }