spec/sync_spec.rb in trackman-0.2.87 vs spec/sync_spec.rb in trackman-0.2.88

- old
+ new

@@ -62,6 +62,14 @@ lambda { result = MyTestAsset.autosync }.should_not raise_error result.should be_false end + + it "logs the error when sync is broken" do + MyTestAsset.stub!(:sync).and_raise("something is wrong") + + RemoteAsset.should_receive(:log_exception).once + + lambda { result = MyTestAsset.autosync }.should_not raise_error + end end \ No newline at end of file