Sha256: 238c630136dced093956bcdb4155c399b3d7753519bd9c48d73944001519a2b0
Contents?: true
Size: 1.13 KB
Versions: 11
Compression:
Stored size: 1.13 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 view.should render_template(:partial => "comments/_new") view.should render_template(:partial => "shared/_timeline") view.should render_template(:partial => "shared/_tasks") view.should render_template(:partial => "contacts/_contact") rendered.should have_tag("div[id=edit_opportunity]") end end
Version data entries
11 entries across 11 versions & 1 rubygems