Project

General

Profile

Defect #7834 » patch-issues_test.rb

API integration test for the problem - milki milk, 2011-03-11 11:15

 
Index: test/integration/api_test/issues_test.rb
===================================================================
--- test/integration/api_test/issues_test.rb (revision 5092)
+++ test/integration/api_test/issues_test.rb (working copy)
@@ -100,6 +100,21 @@
}
end
end
+
+ context "no issues" do
+ should "empty issue array" do
+ get '/issues.xml?cf_1=7'
+
+ assert_tag :tag => 'issues',
+ :attributes => {
+ :type => 'array',
+ :__content__ => '',
+ :total_count => 0,
+ :limit => 25,
+ :offset => 0
+ }
+ end
+ end
end
context "/index.json" do
(2-2/3)