Sha256: 0fbd324fe1e0bb35e6359601b8f6b2225942a84ab01ea795d67bec78e99dd910

Contents?: true

Size: 1.14 KB

Versions: 15

Compression:

Stored size: 1.14 KB

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 "/contacts/show" do
  include ContactsHelper

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

  it "should render contact 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(view).to render_template(partial: "opportunities/_opportunity")

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

Version data entries

15 entries across 15 versions & 2 rubygems

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