Sha256: 9799f3d5e2cd784027f13064efe4256baf96a4bf0ab8c1ae5ad9d77afc0b5895

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

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

describe "admin/users/suspend" do
  before do
    login_and_assign(admin: true)
    assign(:user, @user = FactoryGirl.create(: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

4 entries across 4 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.14.1 spec/views/admin/users/suspend.js.haml_spec.rb
fat_free_crm-0.14.0 spec/views/admin/users/suspend.js.haml_spec.rb
reduced_fat_crm-0.14.0 spec/views/admin/users/suspend.js.haml_spec.rb