Sha256: b0860e5c974d22dbfd89fc28d72956fc7c26eb8f5e962c2953f35d9a7d64e9f5
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
require 'rails_helper' RSpec.describe 'Nyauth::Passwords' do let(:user) { create(:user) } feature 'password' do let(:new_password) { 'cool_password' } background do sign_in(user) visit nyauth.edit_password_path end scenario 'update password' do fill_in('user_password', with: new_password) fill_in('user_password_confirmation', with: new_password) click_button('Update') expect(page).to have_content('updated') end scenario "can't udpate password" do click_button('Update') expect(page).to have_content('errors') end end end
Version data entries
4 entries across 4 versions & 1 rubygems