Skip to content

Instantly share code, notes, and snippets.

@neerajsingh0101
Created January 28, 2009 21:16
Show Gist options
  • Save neerajsingh0101/54194 to your computer and use it in GitHub Desktop.
Save neerajsingh0101/54194 to your computer and use it in GitHub Desktop.
require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
class UsersControllerTest < ActionController::TestCase
def setup
super
end
context 'show' do
setup do
@user = Factory(:user)
get :show, :id => @user
end
should_respond_with :success
should_assign_to_value :page_title, 'Profile of #{assigns(:user).name}'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment