Sha256: b043fe7a67027fdbd464c37eefd5feb93534b2a58d290ddf0d01d5f6b2e8abcc
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
# 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_and_assign assign(:user, @user = current_user) end it "cancel: should hide [Edit Profile] form and restore title" do params[:cancel] = "true" render rendered.should include("crm.flip_form('edit_profile')") rendered.should 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 rendered.should include("$('#edit_profile').html") rendered.should include("crm.hide_form('upload_avatar');") rendered.should include("crm.hide_form('change_password');") rendered.should include("crm.flip_form('edit_profile');") rendered.should include("crm.set_title('edit_profile', 'Edit Profile');") end end
Version data entries
4 entries across 4 versions & 1 rubygems