diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-04-13 05:57:27 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-04-13 05:57:27 +0000 |
commit | 6a6f4039788507a09a1bfd61871ff59601fc0915 (patch) | |
tree | e12946c67c0ed9f1f5bb1ec3ca8d1e1f79c68ce7 | |
parent | f23aceba86025163f16b6b04d039d8c12e08b085 (diff) | |
download | redmine-6a6f4039788507a09a1bfd61871ff59601fc0915.tar.gz redmine-6a6f4039788507a09a1bfd61871ff59601fc0915.zip |
Added missing Enumeration STI exemplars.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3670 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/exemplars/document_category_exemplar.rb | 10 | ||||
-rw-r--r-- | test/exemplars/issue_priority_exemplar.rb | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/exemplars/document_category_exemplar.rb b/test/exemplars/document_category_exemplar.rb new file mode 100644 index 000000000..5ffe9a94a --- /dev/null +++ b/test/exemplars/document_category_exemplar.rb @@ -0,0 +1,10 @@ +class DocumentCategory < Enumeration + generator_for :name, :method => :next_name + generator_for :type => 'DocumentCategory' + + def self.next_name + @last_name ||= 'DocumentCategory0' + @last_name.succ! + @last_name + end +end diff --git a/test/exemplars/issue_priority_exemplar.rb b/test/exemplars/issue_priority_exemplar.rb new file mode 100644 index 000000000..0819a8dc2 --- /dev/null +++ b/test/exemplars/issue_priority_exemplar.rb @@ -0,0 +1,10 @@ +class IssuePriority < Enumeration + generator_for :name, :method => :next_name + generator_for :type => 'IssuePriority' + + def self.next_name + @last_name ||= 'IssuePriority0' + @last_name.succ! + @last_name + end +end |