From fa95501fe5e8c97de4f5960c4eeecfe70d4455f2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 8 Nov 2007 19:00:37 +0000 Subject: Added issues status changes on the activity view (initial patch by Cyril Mougel). git-svn-id: http://redmine.rubyforge.org/svn/trunk@892 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/projects_controller_test.rb | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'test/functional') diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 002dc1e4d..e6c06cf56 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -22,7 +22,7 @@ require 'projects_controller' class ProjectsController; def rescue_action(e) raise e end; end class ProjectsControllerTest < Test::Unit::TestCase - fixtures :projects, :users, :roles, :members, :issues, :enabled_modules, :enumerations + fixtures :projects, :users, :roles, :members, :issues, :journals, :journal_details, :trackers, :issue_statuses, :enabled_modules, :enumerations def setup @controller = ProjectsController.new @@ -93,6 +93,24 @@ class ProjectsControllerTest < Test::Unit::TestCase assert_response :success assert_template 'activity' assert_not_nil assigns(:events_by_day) + + assert_tag :tag => "h3", + :content => /#{2.days.ago.to_date.day}/, + :sibling => { :tag => "ul", + :child => { :tag => "li", + :child => { :tag => "p", + :content => /(#{IssueStatus.find(2).name})/, + } + } + } + assert_tag :tag => "h3", + :content => /#{3.day.ago.to_date.day}/, + :sibling => { :tag => "ul", :child => { :tag => "li", + :child => { :tag => "p", + :content => /#{Issue.find(1).subject}/, + } + } + } end def test_archive -- cgit v1.2.3