Sha256: f83e534ba328194d43154730e0eb7306b0ef5d392de007ecff4a1275fa20b2e0
Contents?: true
Size: 1013 Bytes
Versions: 5
Compression:
Stored size: 1013 Bytes
Contents
require 'rspec' require 'rspec/mocks' require 'rspec/expectations' require 'pry' require 'luggage' require 'net_imap' include Luggage RSpec.configure do |config| require File.dirname(__FILE__) + "/net_imap" end shared_context "factories" do let(:connection) do c = Net::IMAP.new("imap.foo.com") c.stub(:append) c.stub(:authenticate) c.stub(:create) c.stub(:delete) c.stub(:expunge) c.stub(:select) c.stub(:send_command) c.stub(:uid_store) c.stub(:uid_fetch).and_return([{ :attr => { "BODY[]" => "raw_body", "FLAGS" => [], "INTERNALDATE" => (Time.now - 60 * 60 * 24).to_s } }]) c.stub(:uid_search).and_return([1]) c.stub(:list).and_return([]) c end let(:factory) { Luggage.new(:connection => connection) } let(:mailbox) { Luggage::Mailbox.new(connection, :mailbox) } let(:message) { Luggage::Message.new_local(connection, "Inbox") } let(:query_builder) { Luggage::MailboxQueryBuilder.new(mailbox) } end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
luggage-1.2.3 | spec/spec_helper.rb |
luggage-1.2.2 | spec/spec_helper.rb |
luggage-1.2.1 | spec/spec_helper.rb |
luggage-1.2.0 | spec/spec_helper.rb |
luggage-1.1.2 | spec/spec_helper.rb |