Sha256: 2745ff6f83a821a59f7866f98c05178656f9e84f034f7e1f66f962b60ee4bab5
Contents?: true
Size: 791 Bytes
Versions: 4
Compression:
Stored size: 791 Bytes
Contents
require 'campfire_export' require 'campfire_export/timezone' require 'nokogiri' module CampfireExport describe Room do include TimeZone before :each do @room_xml = Nokogiri::XML "<room><name>Test Room</name><id>666</id>" + "<created-at>2009-11-17T19:41:38Z</created-at></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
4 entries across 4 versions & 1 rubygems