Sha256: a4b3f1b4ef706d6fb9323916ba99a1e678f2ed6d2ea9b8d279be3b1e90fb75a5
Contents?: true
Size: 982 Bytes
Versions: 11
Compression:
Stored size: 982 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.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
11 entries across 11 versions & 2 rubygems