Sha256: f312ac6abe15be485009c27a71e1ec0196c4b5f0d702b662b2128cff10ec2a90
Contents?: true
Size: 902 Bytes
Versions: 4
Compression:
Stored size: 902 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/new" do before do login_and_assign(admin: true) assign(:field_group, field_group) end let(:field_group) { FactoryGirl.create(:field_group, label: 'test') } it "renders javascript" do render expect(view).to render_template("admin/field_groups/new") expect(rendered).to have_text("crm.flick('empty', 'toggle')") expect(rendered).to have_text("crm.flip_form('#{field_group.klass_name.downcase}_create_field_group')") expect(rendered).to have_text("$('##{field_group.klass_name.downcase}_create_field_group').html") end end
Version data entries
4 entries across 4 versions & 2 rubygems