Project

General

Profile

Defect #28204 » test_size_option_for_avatar_should_accept_integer_value.diff

test to catch this issue - Go MAEDA, 2018-02-18 00:35

View differences:

test/unit/helpers/application_helper_test.rb (working copy)
1344 1344
      assert_match tag_for_anonymous_re, avatar(nil)
1345 1345
      # Avatar for anonymous user
1346 1346
      assert_match tag_for_anonymous_re, avatar(User.anonymous)
1347
      assert avatar(User.anonymous, :size => 24).include?('width="24" height="24"')
1347 1348
    end
1348 1349
  end
1349 1350

  
(2-2/3)