Skip to content

Instantly share code, notes, and snippets.

@gmgent
Created March 18, 2011 00:36
Show Gist options
  • Save gmgent/875423 to your computer and use it in GitHub Desktop.
Save gmgent/875423 to your computer and use it in GitHub Desktop.
require File.dirname(__FILE__) + '/../test_helper'
require "resources_controller"
class ResourcesControllerTest < ActionController::TestCase
def setup
@u_admin_gmg = new_test_user(:role => roles(:admin), :partner => partners(:gmg))
end
test "index with current_user" do
session[:user] = @u_admin_gmg
get :index
assert_response :success
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment