aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/incoming_message_spec.rb
blob: 55c042141c0539749387a4ebb5055daf5d6ad223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require File.dirname(__FILE__) + '/../spec_helper'

describe IncomingMessage, " when dealing with incoming mail" do
    fixtures :incoming_messages

    before do
        @im = incoming_messages(:useless_incoming_message)
    end

    it "should return the mail Date header date for sent at" do
        @im.sent_at.should == @im.mail.date
    end

end