Revision 441:cbce1fd3b1b7 test/.svn

View differences:

test/.svn/all-wcprops
1 1
K 25
2 2
svn:wc:ra_dav:version-url
3
V 29
4
/svn/!svn/ver/4991/trunk/test
3
V 43
4
/svn/!svn/ver/5947/branches/1.2-stable/test
5 5
END
6
object_daddy_helpers.rb
7
K 25
8
svn:wc:ra_dav:version-url
9
V 53
10
/svn/!svn/ver/4078/trunk/test/object_daddy_helpers.rb
11
END
12
test_helper.rb
13
K 25
14
svn:wc:ra_dav:version-url
15
V 44
16
/svn/!svn/ver/4603/trunk/test/test_helper.rb
17
END
18
helper_testcase.rb
19
K 25
20
svn:wc:ra_dav:version-url
21
V 48
22
/svn/!svn/ver/2887/trunk/test/helper_testcase.rb
23
END
test/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/test
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/test
6 6
http://redmine.rubyforge.org/svn
7 7

  
8 8

  
9 9

  
10
2011-03-03T03:35:13.139305Z
11
4991
12
tmaruyama
10
2011-05-29T07:47:25.955545Z
11
5947
12
jplang
13 13

  
14 14

  
15 15

  
......
35 35

  
36 36

  
37 37

  
38
2011-03-03T11:05:09.000000Z
38
2011-06-06T13:15:00.000000Z
39 39
bec9d26a7ae75350529040e7bca36bfa
40 40
2010-09-10T19:44:45.405792Z
41 41
4078
......
72 72

  
73 73

  
74 74

  
75
2011-03-03T11:05:09.000000Z
76
07898564890be4ff9e6c039fa6aa9d41
77
2011-01-01T12:24:18.924489Z
78
4603
75
2011-06-06T13:18:33.000000Z
76
f3caf6aac8f26ebe59945f9d81a84889
77
2011-03-27T15:41:05.619509Z
78
5227
79 79
jplang
80 80
has-props
81 81

  
......
98 98

  
99 99

  
100 100

  
101
16997
101
17224
102 102

103 103
functional
104 104
dir
......
118 118

  
119 119

  
120 120

  
121
2011-03-03T11:05:09.000000Z
121
2011-06-06T13:15:00.000000Z
122 122
29604d905b321f5bf19b86f7b9797394
123 123
2009-09-13T17:14:35.707881Z
124 124
2887
test/.svn/text-base/test_helper.rb.svn-base
1
# redMine - project management software
2
# Copyright (C) 2006  Jean-Philippe Lang
1
# Redmine - project management software
2
# Copyright (C) 2006-2011  Jean-Philippe Lang
3 3
#
4 4
# This program is free software; you can redistribute it and/or
5 5
# modify it under the terms of the GNU General Public License
......
87 87
    saved_settings = options.keys.inject({}) {|h, k| h[k] = Setting[k].dup; h}
88 88
    options.each {|k, v| Setting[k] = v}
89 89
    yield
90
  ensure
90 91
    saved_settings.each {|k, v| Setting[k] = v}
91 92
  end
92 93

  
......
109 110
    File.join(RAILS_ROOT.gsub(%r{config\/\.\.}, ''), "/tmp/test/#{vendor.downcase}_repository")
110 111
  end
111 112
  
113
  # Returns the url of the subversion test repository
114
  def self.subversion_repository_url
115
    path = repository_path('subversion')
116
    path = '/' + path unless path.starts_with?('/')
117
    "file://#{path}"
118
  end
119
  
112 120
  # Returns true if the +vendor+ test repository is configured
113 121
  def self.repository_configured?(vendor)
114 122
    File.directory?(repository_path(vendor))
......
416 424
  # Checks that the response is a valid JSON string
417 425
  def self.should_be_a_valid_json_string
418 426
    should "be a valid JSON string (or empty)" do
419
      assert (response.body.blank? || ActiveSupport::JSON.decode(response.body))
427
      assert(response.body.blank? || ActiveSupport::JSON.decode(response.body))
420 428
    end
421 429
  end
422 430

  

Also available in: Unified diff