summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-08 19:00:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-08 19:00:37 +0000
commitfa95501fe5e8c97de4f5960c4eeecfe70d4455f2 (patch)
tree8a1705ab6dd35f12a28201bfdfc15edbd55a4503 /test/functional/projects_controller_test.rb
parenta069c4afcfc5a78853155f43dc1ae7df67c96c87 (diff)
downloadredmine-fa95501fe5e8c97de4f5960c4eeecfe70d4455f2.tar.gz
redmine-fa95501fe5e8c97de4f5960c4eeecfe70d4455f2.zip
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
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb20
1 files changed, 19 insertions, 1 deletions
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