diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-10 12:22:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-10 12:22:37 +0000 |
commit | ab6a93b029b236f94a0c33cc0282f0af22b646b5 (patch) | |
tree | df12f0e556c452b036f87e515fabce579b0a6584 /test/integration/api_test | |
parent | 252e4983fba7e11103d1da29650a62f54dd46433 (diff) | |
download | redmine-ab6a93b029b236f94a0c33cc0282f0af22b646b5.tar.gz redmine-ab6a93b029b236f94a0c33cc0282f0af22b646b5.zip |
Changes the representation of journal details in issue API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4483 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r-- | test/integration/api_test/issues_test.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index a5281e5eb..3988ee5b7 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -91,6 +91,40 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest end context "GET /issues/:id" do + context "with journals" do + context ".xml" do + should "display journals" do + get '/issues/1.xml' + + assert_tag :tag => 'issue', + :child => { + :tag => 'journals', + :attributes => { :type => 'array' }, + :child => { + :tag => 'journal', + :attributes => { :id => '1'}, + :child => { + :tag => 'details', + :attributes => { :type => 'array' }, + :child => { + :tag => 'detail', + :attributes => { :name => 'status_id' }, + :child => { + :tag => 'old_value', + :content => '1', + :sibling => { + :tag => 'new_value', + :content => '2' + } + } + } + } + } + } + end + end + end + context "with custom fields" do context ".xml" do should "display custom fields" do |