Sha256: e84b2b5414a2175dc306000d5dbf482678b718d0d32dcb98bbef0ddbc5d2d3d5
Contents?: true
Size: 554 Bytes
Versions: 20
Compression:
Stored size: 554 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Highrise::Kase do before(:each) do @kase = Highrise::Kase.new end it "should be instance of Highrise::Subject" do @kase.kind_of?(Highrise::Subject).should be_true end describe ".close!" do it "should set close date and save" do time = Time.parse("Wed Jan 14 15:43:11 -0200 2009") Time.should_receive(:now).and_return(time) @kase.should_receive(:closed_at=).with(time.utc) @kase.should_receive(:save) @kase.close! end end end
Version data entries
20 entries across 20 versions & 4 rubygems