Sha256: 44f9dc6c5aab5fb638d469eba60a7cf8c6eff353ed647ff59d8cbdab61ec68d8

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'

describe Highrise::Kase do
  it { should be_a_kind_of Highrise::Subject }
  
  it "#close!" do
    mocked_now = Time.parse("Wed Jan 14 15:43:11 -0200 2009")
    Time.should_receive(:now).and_return(mocked_now)
    subject.should_receive(:update_attribute).with(:closed_at, mocked_now.utc)
    subject.close!
  end

  it "#open!" do
    subject.should_receive(:update_attribute).with(:closed_at, nil)
    subject.open!
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
peterosullivan-highrise-3.0.7 spec/highrise/kase_spec.rb
peterosullivan-highrise-3.0.6 spec/highrise/kase_spec.rb
peterosullivan-highrise-3.0.5 spec/highrise/kase_spec.rb
peterosullivan-highrise-3.0.4 spec/highrise/kase_spec.rb
peterosullivan-highrise-3.0.3 spec/highrise/kase_spec.rb
peterosullivan-highrise-3.0.2 spec/highrise/kase_spec.rb
highrise-3.0.1 spec/highrise/kase_spec.rb
highrise-3.0.0 spec/highrise/kase_spec.rb