Kill trailing whitespace in ruby files
This commit is contained in:
@@ -18,7 +18,7 @@ module UploadTestMethods
|
||||
define_method(:original_filename) {filename}
|
||||
define_method(:content_type) {content_type}
|
||||
end
|
||||
|
||||
|
||||
tempfile
|
||||
end
|
||||
|
||||
@@ -33,12 +33,12 @@ end
|
||||
|
||||
class ActionController::TestCase
|
||||
include UploadTestMethods
|
||||
|
||||
|
||||
def assert_authentication_passes(action, http_method, role, params, session)
|
||||
__send__(http_method, action, params, session.merge(:user_id => @users[role].id))
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
||||
def assert_authentication_fails(action, http_method, role)
|
||||
__send__(http_method, action, params, session.merge(:user_id => @users[role].id))
|
||||
assert_redirected_to(new_sessions_path)
|
||||
|
||||
Reference in New Issue
Block a user