Sha256: 46cea321d2907c7c530b96d0ea8a070130d18ca5886f73b83077e517375aac32
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
require 'google_client' describe GoogleClient::Event do describe "when initializing object" do it "should return an Event instance" do GoogleClient::Event.new.should be_instance_of GoogleClient::Event end it "should accept a block to initialize the object" do e = GoogleClient::Event.new do |event| event.title = "Foo" event.description = "Bar" event.location = "Barcelona" end e.title.should eql("Foo") e.description.should eql("Bar") e.location.should eql("Barcelona") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
google_client-0.2.1 | spec/event_spec.rb |
google_client-0.2.0 | spec/event_spec.rb |
google_client-0.1.0 | spec/event_spec.rb |