Sha256: 162efffa2bd8c634e181040499d6801c9cb09fe0c2517c48c14b6831e6f788e0
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
require 'spec_helper' require 'circle/cli/project' module Circle::CLI RSpec.describe Project do let(:repo) { instance_double('Repo', { project: 'rb-array-sorting', user_name: 'mtchavez', branch_name: 'master', circle_token: '123' }) } let(:project) { Project.new(repo) } describe '#builds', vcr: { cassette_name: 'recent_builds_branch' } do subject { project.builds } specify { is_expected.not_to be_empty } end describe '#recent_builds', vcr: { cassette_name: 'recent_builds' } do subject { project.recent_builds } specify { is_expected.not_to be_empty } end describe '#latest', vcr: { cassette_name: 'recent_builds_branch' } do subject { project.latest['status'] } specify { is_expected.to eq('no_tests') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
circle-cli-0.1.1 | spec/circle/cli/project_spec.rb |
circle-cli-0.1.0 | spec/circle/cli/project_spec.rb |