Sha256: 0fc354a1dd549a338c4fa7da64f5f8e36bb1b651a0c2b4de87ec62ca6676bbb3

Contents?: true

Size: 967 Bytes

Versions: 11

Compression:

Stored size: 967 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 File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe "/leads/show" do
  include LeadsHelper

  before do
    login_and_assign
    assign(:lead, @lead = FactoryGirl.create(:lead, :id => 42))
    assign(:users, [ current_user ])
    assign(:comment, Comment.new)
    assign(:timeline, [ FactoryGirl.create(:comment, :commentable => @lead) ])
  end

  it "should render lead landing page" do
    render
    view.should render_template(:partial => "comments/_new")
    view.should render_template(:partial => "shared/_timeline")
    view.should render_template(:partial => "shared/_tasks")

    rendered.should have_tag("div[id=edit_lead]")
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.13.5 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.13.4 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.13.3 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.13.2 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.12.3 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.12.2 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.13.1 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.12.1 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.13.0 spec/views/leads/show.haml_spec.rb
fat_free_crm-0.12.0 spec/views/leads/show.haml_spec.rb