Sha256: 2daedc045bd3dae479c7c02efd681320a75ec5ac940c779c10c4cc9a68e7f50a

Contents?: true

Size: 958 Bytes

Versions: 7

Compression:

Stored size: 958 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 'spec_helper'

describe "/accounts/destroy" do
  include AccountsHelper

  before do
    login_and_assign
    assign(:account, @account = FactoryGirl.create(:account))
    assign(:accounts, [ @account ].paginate)
    assign(:account_category_total, Hash.new(1))
    render
  end

  it "should blind up destroyed account partial" do
    rendered.should include("slideUp")
  end

  it "should update accounts pagination" do
    rendered.should include("#paginate")
  end

  it "should update accounts sidebar" do
    rendered.should include("#sidebar")
    rendered.should have_text("Account Categories")
    rendered.should have_text("Recent Items")
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.13.5 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.13.4 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.13.3 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.13.2 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.13.1 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.13.0 spec/views/accounts/destroy.js.haml_spec.rb