socialforge/spec/requests/gitlab_request_spec.rb

14 lines
314 B
Ruby
Raw Normal View History

2016-03-11 10:18:10 +08:00
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