Sha256: 7d3ee62f29d2533c690b5e612438b2d3f6fca145272bf9c215c5ba0b020add36

Contents?: true

Size: 739 Bytes

Versions: 4

Compression:

Stored size: 739 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/reactivate" do
  before do
    login_and_assign(:admin => true)
    assign(:user, @user = FactoryGirl.create(:user, :suspended_at => Time.now.yesterday))
  end

  it "reloads the requested user partial" do
    render

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/views/admin/users/reactivate.js.haml_spec.rb
fat_free_crm-0.13.5 spec/views/admin/users/reactivate.js.haml_spec.rb
fat_free_crm-0.13.4 spec/views/admin/users/reactivate.js.haml_spec.rb
fat_free_crm-0.13.3 spec/views/admin/users/reactivate.js.haml_spec.rb