Sha256: bb12d63212fd5b4640b62b6c873049fae01ea346372283bff56f0d70e604f55e
Contents?: true
Size: 709 Bytes
Versions: 6
Compression:
Stored size: 709 Bytes
Contents
require "spec_helper" RSpec.describe Ribose::Member do describe ".all" do it "retrieves all members for a space" do space_id = 123_456_789 stub_ribose_space_member_list(space_id) members = Ribose::Member.all(space_id) expect(members.count).to eq(1) expect(members.first.user.name).to eq("John Doe") expect(members.first.role_name_in_space).to eq("Administrator") end end describe ".delete" do it "deletes a member from a space" do space_id = 123_456_789 member_id = 456_789_012 stub_ribose_space_member_delete_api(space_id, member_id) expect { Ribose::Member.delete(space_id, member_id) }.not_to raise_error end end end
Version data entries
6 entries across 6 versions & 1 rubygems