Sha256: 951fdd2d4daf8a455786600d9426cec5c4a7727dfa4c94c2272d19ec8fd3dfc3
Contents?: true
Size: 864 Bytes
Versions: 11
Compression:
Stored size: 864 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.build_stubbed(:user) bob = FactoryGirl.build_stubbed(: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
11 entries across 11 versions & 2 rubygems