Sha256: 1e04b214da832714b8ed717f8ffd66decb7196ed0ac1a274a7ec03d7b115a079
Contents?: true
Size: 1.24 KB
Versions: 15
Compression:
Stored size: 1.24 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 'spec_helper' describe "/accounts/show" do include AccountsHelper before do login_and_assign @account = FactoryGirl.create(:account, id: 42, contacts: [FactoryGirl.create(:contact)], opportunities: [FactoryGirl.create(:opportunity)]) assign(:account, @account) assign(:users, [current_user]) assign(:comment, Comment.new) assign(:timeline, [FactoryGirl.create(:comment, commentable: @account)]) end it "should render account 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(view).to render_template(partial: "opportunities/_opportunity") expect(rendered).to have_tag("div[id=edit_account]") end end
Version data entries
15 entries across 15 versions & 2 rubygems