summaryrefslogtreecommitdiffstats
path: root/test/exemplars/repository_exemplar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/exemplars/repository_exemplar.rb')
-rw-r--r--test/exemplars/repository_exemplar.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/exemplars/repository_exemplar.rb b/test/exemplars/repository_exemplar.rb
new file mode 100644
index 000000000..42d11fca9
--- /dev/null
+++ b/test/exemplars/repository_exemplar.rb
@@ -0,0 +1,11 @@
+class Repository < ActiveRecord::Base
+ generator_for :type => 'Subversion'
+ generator_for :url, :method => :next_url
+
+ def self.next_url
+ @last_url ||= 'file:///test/svn'
+ @last_url.succ!
+ @last_url
+ end
+
+end