spec/circle/cli/project_spec.rb in circle-cli-0.1.1 vs spec/circle/cli/project_spec.rb in circle-cli-0.1.2
- old
+ new
@@ -1,17 +1,18 @@
require 'spec_helper'
require 'circle/cli/project'
+require 'circle/cli/repo'
module Circle::CLI
RSpec.describe Project do
let(:repo) {
- instance_double('Repo', {
- project: 'rb-array-sorting',
+ instance_double Repo, {
+ project: 'circleci',
user_name: 'mtchavez',
branch_name: 'master',
circle_token: '123'
- })
+ }
}
let(:project) {
Project.new(repo)
}
@@ -26,9 +27,9 @@
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') }
+ specify { is_expected.to eq('success') }
end
end
end