Sha256: a2173f3b39417aacd6d49987e3c0c5580142665ea09650f4c18235eb50765932

Contents?: true

Size: 688 Bytes

Versions: 11

Compression:

Stored size: 688 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 File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe "/admin/users/index" do
  before do
    login_and_assign(:admin => true)
  end

  it "renders a list of users" do
    assign(:users, [ FactoryGirl.create(:user) ].paginate)

    render
    view.should render_template(:partial => "_user")
    view.should render_template(:partial => "shared/_paginate")
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.13.5 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.13.4 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.13.3 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.13.2 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.12.3 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.12.2 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.13.1 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.12.1 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.13.0 spec/views/admin/users/index.haml_spec.rb
fat_free_crm-0.12.0 spec/views/admin/users/index.haml_spec.rb