Defect #7834 » patch-issues_test.rb
| 1 |
Index: test/integration/api_test/issues_test.rb |
|---|---|
| 2 |
===================================================================
|
| 3 |
--- test/integration/api_test/issues_test.rb (revision 5092) |
| 4 |
+++ test/integration/api_test/issues_test.rb (working copy) |
| 5 |
@@ -100,6 +100,21 @@ |
| 6 |
}
|
| 7 |
end
|
| 8 |
end
|
| 9 |
+
|
| 10 |
+ context "no issues" do |
| 11 |
+ should "empty issue array" do |
| 12 |
+ get '/issues.xml?cf_1=7' |
| 13 |
+
|
| 14 |
+ assert_tag :tag => 'issues', |
| 15 |
+ :attributes => { |
| 16 |
+ :type => 'array', |
| 17 |
+ :__content__ => '', |
| 18 |
+ :total_count => 0, |
| 19 |
+ :limit => 25, |
| 20 |
+ :offset => 0 |
| 21 |
+ } |
| 22 |
+ end |
| 23 |
+ end |
| 24 |
end
|
| 25 |
|
| 26 |
context "/index.json" do |