Sha256: fda11fe4ecc136198bf86b4ef2caaea58279c1ea961d8f5b9b373cb11ff99904

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

require 'google_client'
require 'spec_helper'
require 'webmock/rspec'

describe GoogleClient::Calendar do
  let(:user) do
    GoogleClient::User.new(USER_TOKEN)
  end

  let(:calendar) do
    GoogleClient::Calendar.new({:user => user, :id => CALENDAR_ID})
  end

  describe "while initializing" do
    
    it "should set the OAuth credentials properly" do
      user.oauth_credentials.should eql(USER_TOKEN)
    end

  end

  describe "while fetching events" do
    it "should fetch all the calendar events when no param is provided" do      
      pending("need to be developed")
    end
  end

  describe "while deleting a calendar" do
    it "should delete the calendar when a valid id is set" do
      pending("need to be developed")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_client-0.1.0 spec/calendar_spec.rb