Refactor: move IssuesController#changes to JournalsController#index.
Since #changes is only an Atom feed of journals of a query, it makes more sense to have it on the JournalsController resource. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4034 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -231,13 +231,6 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
assert_equal columns, session[:query][:column_names].map(&:to_s)
|
||||
end
|
||||
|
||||
def test_changes
|
||||
get :changes, :project_id => 1
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:journals)
|
||||
assert_equal 'application/atom+xml', @response.content_type
|
||||
end
|
||||
|
||||
def test_show_by_anonymous
|
||||
get :show, :id => 1
|
||||
assert_response :success
|
||||
@@ -307,7 +300,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
def test_show_atom
|
||||
get :show, :id => 2, :format => 'atom'
|
||||
assert_response :success
|
||||
assert_template 'changes.rxml'
|
||||
assert_template 'journals/index.rxml'
|
||||
# Inline image
|
||||
assert_select 'content', :text => Regexp.new(Regexp.quote('http://test.host/attachments/download/10'))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user