Sha256: 8497b4f241184ee5c23acd67beca99f5d69eec7b1d8f9a7ae2374c858620a84e

Contents?: true

Size: 730 Bytes

Versions: 7

Compression:

Stored size: 730 Bytes

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 File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe "admin/users/suspend" do
  before do
    login_admin
    assign(:user, @user = build_stubbed(:user, suspended_at: nil))
  end

  it "reloads the requested user partial" do
    render

    expect(rendered).to include("user_#{@user.id}")
    expect(rendered).to include(%/$('#user_#{@user.id}').effect("highlight"/)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fat_free_crm-0.20.1 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.20.0 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.19.2 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.19.0 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.18.2 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.18.1 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.18.0 spec/views/admin/users/suspend.js.haml_spec.rb