Sha256: a0b2ab995ae96b587dd92a321de26986f926bfebbaf9b942dcbcd5e7417d8204

Contents?: true

Size: 991 Bytes

Versions: 11

Compression:

Stored size: 991 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.build_stubbed(:account)
    assign(:lead, FactoryGirl.build_stubbed(:lead))
    assign(:users, [current_user])
    assign(:account, @account)
    assign(:accounts, [@account])
    assign(:opportunity, FactoryGirl.build_stubbed(:opportunity))
  end

  it "should render [convert lead] form" do
    render
    expect(view).to render_template(partial: "leads/_opportunity")
    expect(view).to render_template(partial: "leads/_convert_permissions")

    expect(rendered).to have_tag("form[class=edit_lead]")
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fat_free_crm-0.15.2 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.16.4 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.15.1 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.16.3 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.16.2 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.16.1 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.16.0 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.15.0 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.15.0.beta.2 spec/views/leads/_convert.haml_spec.rb
fat_free_crm-0.15.0.beta spec/views/leads/_convert.haml_spec.rb
reduced_fat_crm-0.15.0.beta spec/views/leads/_convert.haml_spec.rb