summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-09 06:15:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-09 06:15:52 +0000
commit4823d03423e82db3ccce7d3ca9f18b921f579dcc (patch)
tree847f61e72e751a67d55dc26d4d827cb5e366ba48
parent478a23bfa3155b3c906afef9183d8fee99264fec (diff)
downloadredmine-4823d03423e82db3ccce7d3ca9f18b921f579dcc.tar.gz
redmine-4823d03423e82db3ccce7d3ca9f18b921f579dcc.zip
fix indents of OpenID tests in UserTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12395 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/user_test.rb51
1 files changed, 24 insertions, 27 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index f43b1c8ac..20140957e 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -1115,38 +1115,35 @@ class UserTest < ActiveSupport::TestCase
end
if Object.const_defined?(:OpenID)
+ def test_setting_identity_url
+ normalized_open_id_url = 'http://example.com/'
+ u = User.new( :identity_url => 'http://example.com/' )
+ assert_equal normalized_open_id_url, u.identity_url
+ end
- def test_setting_identity_url
- normalized_open_id_url = 'http://example.com/'
- u = User.new( :identity_url => 'http://example.com/' )
- assert_equal normalized_open_id_url, u.identity_url
- end
-
- def test_setting_identity_url_without_trailing_slash
- normalized_open_id_url = 'http://example.com/'
- u = User.new( :identity_url => 'http://example.com' )
- assert_equal normalized_open_id_url, u.identity_url
- end
-
- def test_setting_identity_url_without_protocol
- normalized_open_id_url = 'http://example.com/'
- u = User.new( :identity_url => 'example.com' )
- assert_equal normalized_open_id_url, u.identity_url
- end
+ def test_setting_identity_url_without_trailing_slash
+ normalized_open_id_url = 'http://example.com/'
+ u = User.new( :identity_url => 'http://example.com' )
+ assert_equal normalized_open_id_url, u.identity_url
+ end
- def test_setting_blank_identity_url
- u = User.new( :identity_url => 'example.com' )
- u.identity_url = ''
- assert u.identity_url.blank?
- end
+ def test_setting_identity_url_without_protocol
+ normalized_open_id_url = 'http://example.com/'
+ u = User.new( :identity_url => 'example.com' )
+ assert_equal normalized_open_id_url, u.identity_url
+ end
- def test_setting_invalid_identity_url
- u = User.new( :identity_url => 'this is not an openid url' )
- assert u.identity_url.blank?
- end
+ def test_setting_blank_identity_url
+ u = User.new( :identity_url => 'example.com' )
+ u.identity_url = ''
+ assert u.identity_url.blank?
+ end
+ def test_setting_invalid_identity_url
+ u = User.new( :identity_url => 'this is not an openid url' )
+ assert u.identity_url.blank?
+ end
else
puts "Skipping openid tests."
end
-
end