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