Feature #16904 » 16904.patch
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 |
- « Previous
- 1
- 2
- 3
- Next »