Project

General

Profile

Feature #16904 » 16904.patch

Marius BĂLTEANU, 2019-11-10 13:13

View differences:

test/functional/queries_controller_test.rb
761 761
    assert_include ["<< me >>", "me"], json
762 762
    assert_include ["Dave Lopper", "3", "active"], json
763 763
    assert_include ["Dave2 Lopper2", "5", "locked"], json
764
    assert_include ["Anonymous", "#{User.anonymous.id}"], json
764
    assert_include ["Anonymous", User.anonymous.id.to_s], json
765 765
  end
766 766

  
767 767
  def test_user_filter_should_return_active_and_locked_users_grouped_by_status
......
775 775
    assert_equal 'application/json', response.content_type
776 776
    json = ActiveSupport::JSON.decode(response.body)
777 777

  
778
    assert_equal 6, json.count
778
    assert_equal 7, json.count
779 779
    # "me" value should not be grouped
780 780
    assert_include ["<< me >>", "me"], json
781 781
    assert_include ["Dave Lopper", "3", "active"], json
(3-3/3)