mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
cleanup: rubocop: fix Layout/IndentFirstHashElement in test/test_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19276 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -63,7 +63,8 @@ class ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def mock_file(options=nil)
|
def mock_file(options=nil)
|
||||||
options ||= {
|
options ||=
|
||||||
|
{
|
||||||
:original_filename => 'a_file.png',
|
:original_filename => 'a_file.png',
|
||||||
:content_type => 'image/png',
|
:content_type => 'image/png',
|
||||||
:size => 32
|
:size => 32
|
||||||
@@ -373,10 +374,13 @@ module Redmine
|
|||||||
assert_nil session[:user_id]
|
assert_nil session[:user_id]
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
post "/login", :params => {
|
post(
|
||||||
|
"/login",
|
||||||
|
:params => {
|
||||||
:username => login,
|
:username => login,
|
||||||
:password => password
|
:password => password
|
||||||
}
|
}
|
||||||
|
)
|
||||||
assert_equal login, User.find(session[:user_id]).login
|
assert_equal login, User.find(session[:user_id]).login
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user