Sha256: 575b13230f24e512984b8be5f62542d16f078d35f6f32a03a67caad928e077fb

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 Bytes

Contents

RSpec.describe Percy::Client::Builds, :vcr do
  describe '#create_build' do
    it 'creates a build' do
      build = Percy.create_build('fotinakis/percy-examples')
      expect(build).to be
      expect(build['data']).to be
      expect(build['data']['id']).to be
      expect(build['data']['type']).to eq('builds')
      expect(build['data']['attributes']['state']).to eq('pending')
    end
  end
  describe '#finalize_build' do
    it 'finalizes a build' do
      build = Percy.create_build('fotinakis/percy-examples')
      result = Percy.finalize_build(build['data']['id'])
      expect(result).to eq({'success' => true})
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
percy-client-0.1.4 spec/lib/percy/client/builds_spec.rb
percy-client-0.1.3 spec/lib/percy/client/builds_spec.rb
percy-client-0.1.2 spec/lib/percy/client/builds_spec.rb
percy-client-0.1.1 spec/lib/percy/client/builds_spec.rb
percy-client-0.1.0 spec/lib/percy/client/builds_spec.rb