Sha256: 5d3af486a6d373ecad59127c693a30d1af069b63198fb2e7e2c9ca6cc8556ba5

Contents?: true

Size: 875 Bytes

Versions: 5

Compression:

Stored size: 875 Bytes

Contents

require 'test_helper'

class GoogleAppsApiOffDomainCalendarTest < Test::Unit::TestCase
  include GoogleAppsApi

  context "given users" do
    setup do
      @gapps_config =YAML::load_file("private/gapps-config.yml")["apps_ocelot"].symbolize_keys!
      @u1 = UserEntity.new("__user1@ocelot.cul.columbia.edu")
      @u2 = UserEntity.new("__user2@ocelot.cul.columbia.edu")
      @u3 = UserEntity.new("__user3@ocelot.cul.columbia.edu")
    end

    context "and a calendar api " do
      setup do
        @c_api = Calendar::Api.new(@gapps_config)
      end

      should "be able to set off domain acls" do
        u1_cal = @u1.entity_for_base_calendar
        james_off = CalendarAcl.new(:calendar => u1_cal, :scope => UserEntity.new("apps.cul.columbia.edu_@domain.calendar.google.com"), :role => "read")

        @c_api.set_calendar_acl(james_off)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
google_apps_api-0.3.2 test/google_apps_api_off_domain_calendar_test.rb
google_apps_api-0.3.1 test/google_apps_api_off_domain_calendar_test.rb
google_apps_api-0.3.0 test/google_apps_api_off_domain_calendar_test.rb
google_apps_api-0.2.2 test/google_apps_api_off_domain_calendar_test.rb
google_apps_api-0.2.1 test/google_apps_api_off_domain_calendar_test.rb