Sha256: ab526f8b375c89c31467d81fe72f6b285a2fcf05ca6aef9ba8423453623feef4

Contents?: true

Size: 963 Bytes

Versions: 4

Compression:

Stored size: 963 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 "/campaigns/destroy" do
  before do
    login_and_assign
    assign(:campaign, @campaign = FactoryGirl.create(: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
    rendered.should include("slideUp")
  end

  it "should update Campaigns sidebar" do
    rendered.should include("#sidebar")
    rendered.should have_text("Recent Items")
    rendered.should include(%Q/$('#filters').effect('shake'/)
  end

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.13.5 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.13.4 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.13.3 spec/views/campaigns/destroy.js.haml_spec.rb