Sha256: 470ba214c194be33819702e3aeafcb4fc640e155c7f2631e0b273cfa05cdc40e
Contents?: true
Size: 968 Bytes
Versions: 4
Compression:
Stored size: 968 Bytes
Contents
# frozen_string_literal: true # 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 Admin::FieldGroupsHelper do it "should return the correct info text about tag restrictions and classes for groups" do field_group = create(:field_group, klass_name: "Contact", label: "Test Field Group") html = helper.field_group_subtitle(field_group) expect(html).to include("Test Field Group") expect(html).to include("This field group applies to contacts tagged with") field_group.tag = nil field_group.klass_name = "Account" expect(field_group_subtitle(field_group)).to include("This field group applies to all accounts") end end
Version data entries
4 entries across 4 versions & 1 rubygems