Sha256: c17a37b72458c4bc4c174fd0c3ff35ce4485670ffa965f26f188c9b091f784b3
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
require 'campfire_export' require 'campfire_export/timezone' require 'nokogiri' 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 context "when it finds the last update" do it "loads the last update from the most recent message" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
campfire_export-0.3.0 | spec/campfire_export/room_spec.rb |