Sha256: 0a5c52c6bf37e39eb4db896d599d717ecd193d403d030e7f9d27d799f4699488
Contents?: true
Size: 850 Bytes
Versions: 4
Compression:
Stored size: 850 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] expect(rendered).to include("id=\\'user_#{amy.id}\\'") expect(rendered).to include("id=\\'user_#{bob.id}\\'") expect(rendered).to include("$('#paginate')") end end
Version data entries
4 entries across 4 versions & 2 rubygems