Sha256: 4c4829f4868e2a7cacbed0ab296da369cfe197cf8ef8100a6824758b1c9c1f5f
Contents?: true
Size: 969 Bytes
Versions: 11
Compression:
Stored size: 969 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/_convert" do include LeadsHelper before do login_and_assign @account = FactoryGirl.create(:account) assign(:lead, FactoryGirl.create(:lead)) assign(:users, [ current_user ]) assign(:account, @account) assign(:accounts, [ @account ]) assign(:opportunity, FactoryGirl.create(:opportunity)) end it "should render [convert lead] form" do render view.should render_template(:partial => "leads/_opportunity") view.should render_template(:partial => "leads/_convert_permissions") rendered.should have_tag("form[class=edit_lead]") end end
Version data entries
11 entries across 11 versions & 1 rubygems