0002-add-test.patch

vzvu 3k6k, 2020-10-24 09:56

Download (658 Bytes)

View differences:

test/integration/api_test/api_test.rb
55 55
    assert_response :no_content
56 56
    assert_equal '', response.body
57 57
  end
58

  
59
  def test_setting_api_limit_should_limit_response_item_count
60
    with_settings :api_limit => 5 do
61
      get '/users.xml?limit=5', :headers => credentials('admin')
62
      assert_select 'users[type=array][total_count][limit="5"][offset="0"]'
63
      assert_select 'users user', 5
64
    end
65
  end
58 66
end