mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00: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:
parent
98777fdb8b
commit
f8fcad6afb
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user