Sha256: 327eab6ca3f4b694190e9c67cd48f432c4da0cd2b437c1b58c09ded17d149485

Contents?: true

Size: 983 Bytes

Versions: 11

Compression:

Stored size: 983 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.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")
    expect(rendered).to include(%/$('#filters').effect('shake'/)
  end

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fat_free_crm-0.15.2 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.16.4 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.15.1 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.16.3 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.16.2 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.16.1 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.16.0 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.15.0 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.15.0.beta.2 spec/views/campaigns/destroy.js.haml_spec.rb
fat_free_crm-0.15.0.beta spec/views/campaigns/destroy.js.haml_spec.rb
reduced_fat_crm-0.15.0.beta spec/views/campaigns/destroy.js.haml_spec.rb