Sha256: 28cbabfb33e469929ecb62c6b0dd0f4c386f6504245459a01a74d8f5fc2f306d
Contents?: true
Size: 852 Bytes
Versions: 4
Compression:
Stored size: 852 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 end it "renders [admin/user] template with @users collection" do amy = FactoryGirl.create(:user) bob = FactoryGirl.create(:user) assign(:users, [ amy, bob ].paginate) render :template => 'admin/users/index', :formats => [:js] rendered.should include("id=\\'user_#{amy.id}\\'") rendered.should include("id=\\'user_#{bob.id}\\'") rendered.should include("$('#paginate')") end end
Version data entries
4 entries across 4 versions & 1 rubygems