@@ -106,24 +106,24 class ActiveSupport::TestCase | |||
|
106 | 106 | # LDAP is not listening |
|
107 | 107 | return nil |
|
108 | 108 | end |
|
109 | ||
|
109 | ||
|
110 | 110 | # Returns the path to the test +vendor+ repository |
|
111 | 111 | def self.repository_path(vendor) |
|
112 |
|
|
|
112 | Rails.root.join("tmp/test/#{vendor.downcase}_repository").to_s | |
|
113 | 113 | end |
|
114 | ||
|
114 | ||
|
115 | 115 | # Returns the url of the subversion test repository |
|
116 | 116 | def self.subversion_repository_url |
|
117 | 117 | path = repository_path('subversion') |
|
118 | 118 | path = '/' + path unless path.starts_with?('/') |
|
119 | 119 | "file://#{path}" |
|
120 | 120 | end |
|
121 | ||
|
121 | ||
|
122 | 122 | # Returns true if the +vendor+ test repository is configured |
|
123 | 123 | def self.repository_configured?(vendor) |
|
124 | 124 | File.directory?(repository_path(vendor)) |
|
125 | 125 | end |
|
126 | ||
|
126 | ||
|
127 | 127 | def assert_error_tag(options={}) |
|
128 | 128 | assert_tag({:attributes => { :id => 'errorExplanation' }}.merge(options)) |
|
129 | 129 | end |
General Comments 0
You need to be logged in to leave comments.
Login now