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