Sha256: c4a67a24995985718c489600ff75e36d3a196c1ebec4785dbef5673077daa148
Contents?: true
Size: 513 Bytes
Versions: 4
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, "/2.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
4 entries across 4 versions & 1 rubygems