Sha256: a82e203f4a7d1157b0c3b7aa29421d78081a7eebdc3c6318455c7f8047e804e2
Contents?: true
Size: 868 Bytes
Versions: 14
Compression:
Stored size: 868 Bytes
Contents
require 'spec_helper' describe "organizations" do let(:client) { create_client } it_should_behave_like "a resource", :organizations, lambda { {name: Zendesk2.uuid} }, lambda { {name: Zendesk2.uuid} } describe do let(:organization) { client.organizations.create(name: Zendesk2.uuid) } it "should get #users" do user = client.users.create(email: "#{Zendesk2.uuid}@example.org", name: Zendesk2.uuid, organization_id: organization.id) organization.users.should include user end it "should get #tickets" do user = client.users.create(email: "#{Zendesk2.uuid}@example.org", name: Zendesk2.uuid, organization_id: organization.id) ticket = client.tickets.create(subject: "#{Zendesk2.uuid}@example.org", description: Zendesk2.uuid, requester: user) organization.tickets.should include ticket end end end
Version data entries
14 entries across 14 versions & 1 rubygems