Sha256: 05126d2b6b8b893ffd9a126420ca2f278cc0a54df4461e50131951b1959a0c5a
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe MailboxerMail do before do @entity1 = Factory(:user) @entity2 = Factory(:user) @mail1 = @entity1.send_message(@entity2,"Body","Subject") end it "should belong to a message" do assert @mail1.mailboxer_message end it "should belong to a conversation" do assert @mail1.mailboxer_conversation end it "should be able to be marked as unread" do @mail1.read.should==true @mail1.mark_as_unread @mail1.read.should==false end it "should be able to be marked as read" do @mail1.read.should==true @mail1.mark_as_unread @mail1.mark_as_read @mail1.read.should==true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailboxer-0.0.2 | spec/models/mailboxer_mail_spec.rb |