From 6994d1c23b8d2e31aea171aea9e66c60cc43c95a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 4 Jul 2009 12:07:03 +0000 Subject: Actually block issues from closing when a blocking issue isn't closed (#1740). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2800 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/fixtures/issue_relations.yml | 7 +++++++ test/fixtures/issues.yml | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/issue_relations.yml (limited to 'test/fixtures') diff --git a/test/fixtures/issue_relations.yml b/test/fixtures/issue_relations.yml new file mode 100644 index 000000000..fb4de48c2 --- /dev/null +++ b/test/fixtures/issue_relations.yml @@ -0,0 +1,7 @@ +issue_relation_001: + id: 1 + issue_from_id: 10 + issue_to_id: 9 + relation_type: blocks + delay: + diff --git a/test/fixtures/issues.yml b/test/fixtures/issues.yml index b66f2eb41..8c8cfbdd6 100644 --- a/test/fixtures/issues.yml +++ b/test/fixtures/issues.yml @@ -125,4 +125,35 @@ issues_008: start_date: due_date: lock_version: 0 - +issues_009: + created_on: <%= 1.minute.ago.to_date.to_s(:db) %> + project_id: 5 + updated_on: <%= 1.minute.ago.to_date.to_s(:db) %> + priority_id: 5 + subject: Blocked Issue + id: 9 + fixed_version_id: + category_id: + description: This is an issue that is blocked by issue #10 + tracker_id: 1 + assigned_to_id: + author_id: 2 + status_id: 1 + start_date: <%= Date.today.to_s(:db) %> + due_date: <%= 1.days.from_now.to_date.to_s(:db) %> +issues_010: + created_on: <%= 1.minute.ago.to_date.to_s(:db) %> + project_id: 5 + updated_on: <%= 1.minute.ago.to_date.to_s(:db) %> + priority_id: 5 + subject: Issue Doing the Blocking + id: 10 + fixed_version_id: + category_id: + description: This is an issue that blocks issue #9 + tracker_id: 1 + assigned_to_id: + author_id: 2 + status_id: 1 + start_date: <%= Date.today.to_s(:db) %> + due_date: <%= 1.days.from_now.to_date.to_s(:db) %> -- cgit v1.2.3