Sha256: 82016f13611c94ceb6ab398f52851d57ccf567f184082a0c33e1f9e00f42791b
Contents?: true
Size: 1.25 KB
Versions: 5
Compression:
Stored size: 1.25 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 "/leads/_sidebar_show" do include LeadsHelper before do login_and_assign assign(:users, [current_user]) assign(:comment, Comment.new) assign(:lead, FactoryGirl.build_stubbed(:lead, blog: 'http://www.blogger.com/home', linkedin: 'www.linkedin.com', twitter: 'twitter.com/account', facebook: '')) end it "should render working web presence links whether a protocol is provided or not" do render expect(rendered).to have_tag("a[href='http://www.blogger.com/home']") expect(rendered).to have_tag("a[href='http://www.linkedin.com']") expect(rendered).to have_tag("a[href='http://twitter.com/account']") expect(rendered).not_to have_tag("a[href='http://www.facebook/profile']") end end
Version data entries
5 entries across 5 versions & 1 rubygems