Sha256: 2051b0e786920edb486b5dc8eed1aeb399e2d05933826430598bfdb2a2c04070
Contents?: true
Size: 612 Bytes
Versions: 11
Compression:
Stored size: 612 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("can't") end end end
Version data entries
11 entries across 11 versions & 1 rubygems