Sha256: e71f6145e7f1dc6cd119ba24343a660b69c681497d93ac65bc73643e599ab685

Contents?: true

Size: 975 Bytes

Versions: 4

Compression:

Stored size: 975 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
    expect(rendered).to include("slideUp")
  end

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

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.14.1 spec/views/accounts/destroy.js.haml_spec.rb
fat_free_crm-0.14.0 spec/views/accounts/destroy.js.haml_spec.rb
reduced_fat_crm-0.14.0 spec/views/accounts/destroy.js.haml_spec.rb