Sha256: b0f0756ce7b3e0043f7688226dfb006b1604e0ede11a9183babd796e66cf3bc3
Contents?: true
Size: 926 Bytes
Versions: 2
Compression:
Stored size: 926 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 "/campaigns/destroy" do before do login assign(:campaign, @campaign = build_stubbed(:campaign, user: current_user)) assign(:campaigns, [@campaign].paginate) assign(:campaign_status_total, Hash.new(1)) render end it "should blind up destroyed campaign partial" do expect(rendered).to include("slideUp") end it "should update Campaigns sidebar" do expect(rendered).to include("#sidebar") expect(rendered).to have_text("Recent Items") end it "should update pagination" do expect(rendered).to include("#paginate") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.20.1 | spec/views/campaigns/destroy.js.haml_spec.rb |
fat_free_crm-0.20.0 | spec/views/campaigns/destroy.js.haml_spec.rb |