@@ -122,12 +122,14 class RepositoryCvsTest < ActiveSupport::TestCase | |||||
122 | assert buf |
|
122 | assert buf | |
123 | lines = buf.split("\n") |
|
123 | lines = buf.split("\n") | |
124 | assert_equal 2, lines.length |
|
124 | assert_equal 2, lines.length | |
125 | assert_equal 'with one change', lines[1] |
|
125 | buf = lines[1].gsub(/\r$/, "") | |
|
126 | assert_equal 'with one change', buf | |||
126 | buf = @repository.cat('README', '1') |
|
127 | buf = @repository.cat('README', '1') | |
127 | assert buf |
|
128 | assert buf | |
128 | lines = buf.split("\n") |
|
129 | lines = buf.split("\n") | |
129 | assert_equal 1, lines.length |
|
130 | assert_equal 1, lines.length | |
130 | assert_equal 'CVS test repository', lines[0] |
|
131 | buf = lines[0].gsub(/\r$/, "") | |
|
132 | assert_equal 'CVS test repository', buf | |||
131 | assert_nil @repository.cat('missing.rb') |
|
133 | assert_nil @repository.cat('missing.rb') | |
132 |
|
134 | |||
133 | # sources/welcome_controller.rb is removed at revision 5. |
|
135 | # sources/welcome_controller.rb is removed at revision 5. |
General Comments 0
You need to be logged in to leave comments.
Login now