Kill trailing whitespace in ruby files
This commit is contained in:
@@ -5,14 +5,14 @@ class SessionsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@user = FactoryGirl.create(:user)
|
||||
end
|
||||
|
||||
|
||||
context "new action" do
|
||||
should "render" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context "create action" do
|
||||
should "create a new session" do
|
||||
post :create, {:name => @user.name, :password => "password"}
|
||||
@@ -20,18 +20,18 @@ class SessionsControllerTest < ActionController::TestCase
|
||||
assert_equal(@user.id, session[:user_id])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context "destroy action" do
|
||||
setup do
|
||||
CurrentUser.user = @user
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
end
|
||||
|
||||
|
||||
teardown do
|
||||
CurrentUser.user = nil
|
||||
CurrentUser.ip_addr = nil
|
||||
end
|
||||
|
||||
|
||||
should "clear the session" do
|
||||
post :destroy, {}, {:user_id => @user.id}
|
||||
assert_redirected_to posts_path
|
||||
|
||||
Reference in New Issue
Block a user