You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/spec/requests/gitlab_request_spec.rb

14 lines
314 B

require 'rails_helper'
RSpec.describe "Gitlab request", :type => :request do
describe "get repository files" do
it "参数正确,可以获取正确列表 " do
api = Trustie::Gitlab::Api.new
trees = api.trees(11)
expect(trees).to be_instance_of(Array)
end
end
end