Sha256: 61a1d0844f8783c35b14c7938f089a9df3a5afb5d30f5eeb44fa0921809ece22
Contents?: true
Size: 990 Bytes
Versions: 7
Compression:
Stored size: 990 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 'spec_helper' describe "/accounts/destroy" do include AccountsHelper before do login assign(:account, @account = build_stubbed(: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
7 entries across 7 versions & 1 rubygems