Sha256: 245df8e96a67cb23dc7812b7a1ea8463c22e9a4ccf89a5f4859ed7f4a11cd712

Contents?: true

Size: 977 Bytes

Versions: 11

Compression:

Stored size: 977 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.build_stubbed(:lead, id: 42))
    assign(:users, [current_user])
    assign(:comment, Comment.new)
    assign(:timeline, [FactoryGirl.build_stubbed(:comment, commentable: @lead)])
  end

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

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

Version data entries

11 entries across 11 versions & 2 rubygems

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