Sha256: 381560d2969aeef56f337c0e9e98b08199f519014456c0125844bc5debc54725
Contents?: true
Size: 573 Bytes
Versions: 6
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Travis::Client::Methods do subject { OpenStruct.new(session:).extend(described_class) } let(:session) { Travis::Client.new } before { subject.access_token = 'token' } its(:api_endpoint) { is_expected.to be == 'https://api.travis-ci.com/' } its(:repos) { is_expected.to be == session.find_many(Travis::Client::Repository) } its(:user) { is_expected.to be == session.find_one(Travis::Client::User) } it 'fetches a single repo' do subject.repo(891).slug.should be == 'rails/rails' end end
Version data entries
6 entries across 6 versions & 1 rubygems