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

Version Path
kmayer-highrise-0.11.0 spec/highrise/kase_spec.rb
kmayer-highrise-0.11.1 spec/highrise/kase_spec.rb
kmayer-highrise-0.12.0 spec/highrise/kase_spec.rb
kmayer-highrise-0.13.0 spec/highrise/kase_spec.rb
kmayer-highrise-0.8.0 spec/highrise/kase_spec.rb
kmayer-highrise-0.8.1 spec/highrise/kase_spec.rb
kmayer-highrise-0.9.0 spec/highrise/kase_spec.rb
kmayer-highrise-0.9.1 spec/highrise/kase_spec.rb
kmayer-highrise-0.9.2 spec/highrise/kase_spec.rb
kmayer-highrise-1.0.1 spec/highrise/kase_spec.rb
rogerio-augusto-highrise-2.0.4 spec/highrise/kase_spec.rb
rogerio-augusto-highrise-2.0.3 spec/highrise/kase_spec.rb
rogerio-augusto-highrise-2.0.2 spec/highrise/kase_spec.rb
highrise-2.0.1 spec/highrise/kase_spec.rb
highrise-2.0.0 spec/highrise/kase_spec.rb
highrise-1.2.0 spec/highrise/kase_spec.rb
soleone-highrise-0.13.3 spec/highrise/kase_spec.rb
highrise-1.0.4 spec/highrise/kase_spec.rb
highrise-1.0.3 spec/highrise/kase_spec.rb
highrise-1.0.2 spec/highrise/kase_spec.rb