stabilize user creation feature spec

pull/6177/head
Jens Ulferts 7 years ago
parent c790aeda29
commit e87dce6fd6
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      spec/features/users/create_spec.rb

@ -45,7 +45,7 @@ describe 'create users', type: :feature, selenium: true do
it 'creates the user' do
expect(page).to have_selector('.flash', text: 'Successful creation.')
new_user = User.order('created_on DESC').first
new_user = User.order('id DESC').first
expect(current_path).to eql(edit_user_path(new_user.id))
end

Loading…
Cancel
Save