Refactor and add tests for News #index API (#7072).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Showing
- app/controllers/news_controller.rb 18 additions, 7 deletionsapp/controllers/news_controller.rb
- app/models/news.rb 5 additions, 0 deletionsapp/models/news.rb
- app/views/news/index.api.rsb 14 additions, 0 deletionsapp/views/news/index.api.rsb
- test/fixtures/enabled_modules.yml 4 additions, 0 deletionstest/fixtures/enabled_modules.yml
- test/fixtures/news.yml 9 additions, 0 deletionstest/fixtures/news.yml
- test/integration/api_test/news_test.rb 94 additions, 0 deletionstest/integration/api_test/news_test.rb
app/views/news/index.api.rsb
0 → 100644
test/integration/api_test/news_test.rb
0 → 100644
Please register or sign in to comment