Sha256: 4137dbf59fdfcdce0ea32c6acc9cfeb84f635b9f67d2e23e295339f49b53e903
Contents?: true
Size: 1.16 KB
Versions: 10
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ require 'spec_helper' describe "/users/edit" do include UsersHelper before do login assign(:user, @user = current_user) end it "cancel: should hide [Edit Profile] form and restore title" do params[:cancel] = "true" render expect(rendered).to include("crm.flip_form('edit_profile')") expect(rendered).to include("crm.set_title('edit_profile', 'My Profile');") end it "edit profile: should hide [Upload Avatar] and [Change Password] forms and show [Edit Profile]" do render expect(rendered).to include("$('#edit_profile').html") expect(rendered).to include("crm.hide_form('upload_avatar');") expect(rendered).to include("crm.hide_form('change_password');") expect(rendered).to include("crm.flip_form('edit_profile');") expect(rendered).to include("crm.set_title('edit_profile', 'Edit Profile');") end end
Version data entries
10 entries across 10 versions & 1 rubygems