Sha256: d76069794ab6712a901938531d34a6aa1d71f30e7d2043884edd3c68a75e90b1

Contents?: true

Size: 645 Bytes

Versions: 15

Compression:

Stored size: 645 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/users/_new" do
  before do
    login_and_assign(admin: true)
    assign(:user, User.new)
    assign(:users, [current_user])
  end

  it "renders [Create User] form" do
    render
    expect(view).to render_template(partial: "admin/users/_profile")

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.15.2 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.16.4 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.14.1 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.15.1 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.16.3 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.16.2 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.16.1 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.16.0 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.15.0 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.15.0.beta.2 spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.15.0.beta spec/views/admin/users/_create.haml_spec.rb
fat_free_crm-0.14.0 spec/views/admin/users/_create.haml_spec.rb
reduced_fat_crm-0.15.0.beta spec/views/admin/users/_create.haml_spec.rb
reduced_fat_crm-0.14.0 spec/views/admin/users/_create.haml_spec.rb