Sha256: 75d45f77c2ae712a671ec98ee0eb0aeac6e51b4a9a7b1f5178996803f697f515
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
require 'spec_helper' module CampfireExport describe Room do include TimeZone before :each do doc = Nokogiri::XML "<room><name>Test Room</name><id>666</id>" + "<created-at>2009-11-17T19:41:38Z</created-at></room>" @room_xml = doc.xpath('/room') Account.timezone = find_tzinfo("America/Los_Angeles") end context "when it is created" do it "sets up basic properties" do room = Room.new(@room_xml) room.name.should == "Test Room" room.id.should == "666" room.created_at.should == DateTime.parse("2009-11-17T11:41:38Z") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stackbuilders-campfire_export-0.5.1 | spec/campfire_export/room_spec.rb |
stackbuilders-campfire_export-0.5.0 | spec/campfire_export/room_spec.rb |