spec/mailbox_spec.rb in gmail-0.3.4 vs spec/mailbox_spec.rb in gmail-0.4.0
- old
+ new
@@ -32,7 +32,18 @@
mock_mailbox do |mailbox|
message = mailbox.emails.first
mailbox.emails(:all, :from => message.from.first.name) == message.from.first.name
end
end
+
+ it "should be able to do a full text search of message bodies" do
+ pending "This can wait..."
+ #mock_mailbox do |mailbox|
+ # message = mailbox.emails.first
+ # body = message.parts.blank? ? message.body.decoded : message.parts[0].body.decoded
+ # emails = mailbox.emails(:search => body.split(' ').first)
+ # emails.size.should > 0
+ #end
+ end
+
end
end