assert assigns(:entries).detect {|e| e.name == 'filemane with spaces.txt' && e.kind == 'file'}
assert assigns(:entries).detect {|e| e.name == ' filename with a leading space.txt ' && e.kind == 'file'}
assert_not_nil assigns(:changesets)
- assigns(:changesets).size > 0
+ assert assigns(:changesets).size > 0
end
def test_browse_branch
assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'}
assert assigns(:entries).detect {|e| e.name == 'test.txt' && e.kind == 'file'}
assert_not_nil assigns(:changesets)
- assigns(:changesets).size > 0
+ assert assigns(:changesets).size > 0
end
def test_browse_tag
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
- assigns(:entries).size > 0
+ assert assigns(:entries).size > 0
assert_not_nil assigns(:changesets)
- assigns(:changesets).size > 0
+ assert assigns(:changesets).size > 0
end
end
assert_equal 'file', entry.kind
assert_equal 'images/edit.png', entry.path
assert_not_nil assigns(:changesets)
- assigns(:changesets).size > 0
+ assert assigns(:changesets).size > 0
end
def test_browse_at_given_revision
assert_not_nil assigns(:entries)
assert_equal ['delete.png'], assigns(:entries).collect(&:name)
assert_not_nil assigns(:changesets)
- assigns(:changesets).size > 0
+ assert assigns(:changesets).size > 0
end
def test_changes