@@ -102,13 +102,19 class RepositoryCvsTest < ActiveSupport::TestCase | |||||
102 | assert_equal entries[2].lastrev.author, 'LANG' |
|
102 | assert_equal entries[2].lastrev.author, 'LANG' | |
103 | end |
|
103 | end | |
104 |
|
104 | |||
105 | def test_entries_invalid |
|
105 | def test_entries_invalid_path | |
106 | @repository.fetch_changesets |
|
106 | @repository.fetch_changesets | |
107 | @repository.reload |
|
107 | @repository.reload | |
108 | assert_nil @repository.entries('missing') |
|
108 | assert_nil @repository.entries('missing') | |
109 | assert_nil @repository.entries('missing', '3') |
|
109 | assert_nil @repository.entries('missing', '3') | |
110 | end |
|
110 | end | |
111 |
|
111 | |||
|
112 | def test_entries_invalid_revision | |||
|
113 | @repository.fetch_changesets | |||
|
114 | @repository.reload | |||
|
115 | assert_nil @repository.entries('', '123') | |||
|
116 | end | |||
|
117 | ||||
112 | def test_cat |
|
118 | def test_cat | |
113 | @repository.fetch_changesets |
|
119 | @repository.fetch_changesets | |
114 | @repository.reload |
|
120 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now