@@ -43,8 +43,14 begin | |||||
43 | end |
|
43 | end | |
44 |
|
44 | |||
45 | def test_cat |
|
45 | def test_cat | |
46 | assert @adapter.cat("sources/welcome_controller.rb", 2) |
|
46 | [2, '400bb8672109', '400', 400].each do |r| | |
47 |
|
|
47 | buf = @adapter.cat('sources/welcome_controller.rb', r) | |
|
48 | assert buf | |||
|
49 | lines = buf.split("\r\n") | |||
|
50 | assert_equal 25, lines.length | |||
|
51 | assert_equal 'class WelcomeController < ApplicationController', lines[17] | |||
|
52 | end | |||
|
53 | assert_nil @adapter.cat('sources/welcome_controller.rb') | |||
48 | end |
|
54 | end | |
49 |
|
55 | |||
50 | def test_access_by_nodeid |
|
56 | def test_access_by_nodeid |
General Comments 0
You need to be logged in to leave comments.
Login now