require 'rails_helper'

feature 'roles' do
  scenario 'unsuccessful edit a role' do
    role
    admin_sign_in
    visit admin_path
    click_link 'Roles'
    click_link 'Edit', match: :first
    fill_in 'role_name', with: ''
    click_button 'Update Role'
    
    expect(page).to have_content "Name can't be blank"
  end
end