Sha256: beb338cc16a79bfce977be44db473feff0eb03f2e7dfaace5c7efec046023160

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe BitBucket::Invitations do
  subject { described_class.new }

  describe '#invitations' do
    before do
      expect(subject).to receive(:request).with(
        :post,
        '/1.0/invitations/mock_username/mock_repo/mock_email_address',
        { permission: 'read' },
        {}
      )
    end

    it 'sends a POST request for an invitation belonging to the given repo' do
      subject.invite('mock_username', 'mock_repo', 'mock_email_address', 'read')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 spec/bitbucket_rest_api/invitations_spec.rb