Sha256: 535fbe98d3f42ff60286a448b34d40815b612454172d5d262907caaae5247955
Contents?: true
Size: 797 Bytes
Versions: 11
Compression:
Stored size: 797 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 'spec_helper' describe "admin/field_groups/edit" do before do login_and_assign(admin: true) assign(:field_group, field_group) end let(:field_group) { FactoryGirl.build_stubbed(:field_group, label: 'test') } it "renders javascript" do render expect(view).to render_template("admin/field_groups/edit") expect(rendered).to have_text("crm.show_form('#{dom_id(field_group, :edit)}')") expect(rendered).to have_text("$('##{dom_id(field_group, :edit)}').html") end end
Version data entries
11 entries across 11 versions & 2 rubygems