Created
January 28, 2009 21:16
-
-
Save neerajsingh0101/54194 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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