@@ -42,18 +42,6 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
42 | end |
|
42 | end | |
43 |
|
43 | |||
44 | if File.directory?(REPOSITORY_PATH) |
|
44 | if File.directory?(REPOSITORY_PATH) | |
45 | def test_show |
|
|||
46 | @repository.fetch_changesets |
|
|||
47 | @repository.reload |
|
|||
48 | get :show, :id => 3 |
|
|||
49 | assert_response :success |
|
|||
50 | assert_template 'show' |
|
|||
51 | assert_not_nil assigns(:entries) |
|
|||
52 | assert assigns(:entries).size > 0 |
|
|||
53 | assert_not_nil assigns(:changesets) |
|
|||
54 | assigns(:changesets).size > 0 |
|
|||
55 | end |
|
|||
56 |
|
||||
57 | def test_browse_root |
|
45 | def test_browse_root | |
58 | @repository.fetch_changesets |
|
46 | @repository.fetch_changesets | |
59 | @repository.reload |
|
47 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now