Sha256: 2419338d6bc9c3dbeb130f2e9765669d7f3e8325ff9ad518bc96bfa09d37939f

Contents?: true

Size: 1.17 KB

Versions: 15

Compression:

Stored size: 1.17 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 "/opportunities/show" do
  include OpportunitiesHelper

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

  it "should render opportunity 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: "contacts/_contact")

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

Version data entries

15 entries across 15 versions & 2 rubygems

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