- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
- 'test/unit/query_test.rb'
- 'test/unit/repository_test.rb'
- - 'test/unit/user_test.rb'
# Cop supports --auto-correct.
Layout/SpaceInsidePercentLiteralDelimiters:
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/' )
+ 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' )
+ 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' )
+ u = User.new(:identity_url => '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 = 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' )
+ u = User.new(:identity_url => 'this is not an openid url')
assert u.identity_url.blank?
end
else