mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in test/integration/api_test/my_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18652 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
276674ce39
commit
a66fe49e0b
@ -189,7 +189,6 @@ Layout/EmptyLinesAroundBlockBody:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'db/schema.rb'
|
- 'db/schema.rb'
|
||||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
- 'test/integration/api_test/my_test.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
|
|||||||
@ -63,13 +63,11 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
|
|||||||
:headers => credentials('dlopper', 'foo')
|
:headers => credentials('dlopper', 'foo')
|
||||||
assert_response :no_content
|
assert_response :no_content
|
||||||
assert_equal '', @response.body
|
assert_equal '', @response.body
|
||||||
|
|
||||||
assert user = User.find_by_lastname('Renamed')
|
assert user = User.find_by_lastname('Renamed')
|
||||||
assert_equal 'Dave', user.firstname
|
assert_equal 'Dave', user.firstname
|
||||||
assert_equal 'Renamed', user.lastname
|
assert_equal 'Renamed', user.lastname
|
||||||
assert_equal 'dave@somenet.foo', user.mail
|
assert_equal 'dave@somenet.foo', user.mail
|
||||||
refute user.admin?
|
refute user.admin?
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "PUT /my/account.xml with invalid parameters" do
|
test "PUT /my/account.xml with invalid parameters" do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user