Permalink
Browse files

Use stub against time instead of DateTime to avoid double redefinitio…

…n error
  • Loading branch information...
1 parent 80d4244 commit 32b3b2c36aa7df8a1e70e6e2194b0e889f45c901 @mikel committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/mail/message_spec.rb
@@ -1293,7 +1293,7 @@ def message_with_iso_8859_1_charset
before(:each) do
# Ensure specs don't randomly fail due to messages being generated 1 second apart
time = Time.now
- DateTime.should_receive(:now).twice.and_return(time)
+ Time.stub!(:now).and_return(time)
end
it "should be implemented" do

0 comments on commit 32b3b2c

Please sign in to comment.