Sha256: 796538a21cf1545999dab3230b8bdbc9ab27c8cd472ac85f77205eb2ee62b0fe

Contents?: true

Size: 513 Bytes

Versions: 5

Compression:

Stored size: 513 Bytes

Contents

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

5 entries across 5 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 spec/bitbucket_rest_api/invitations_spec.rb
zz_bitbucket_rest_api-0.1.10 spec/bitbucket_rest_api/invitations_spec.rb
zz_bitbucket_rest_api-0.1.9 spec/bitbucket_rest_api/invitations_spec.rb
zz_bitbucket_rest_api-0.1.8 spec/bitbucket_rest_api/invitations_spec.rb
bitbucket_rest_api2-0.9.5 spec/bitbucket_rest_api/invitations_spec.rb