Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use LOAD_PATH for spec_helper instead of relative requires

  • Loading branch information...
commit 1fc92d6baf201909c74912d7622d7190dc05b53a 1 parent b404527
@jeremy jeremy authored
Showing with 72 additions and 72 deletions.
  1. +1 −1  spec/mail/attachments_list_spec.rb
  2. +1 −1  spec/mail/body_spec.rb
  3. +1 −1  spec/mail/configuration_spec.rb
  4. +1 −1  spec/mail/core_extensions_spec.rb
  5. +1 −1  spec/mail/elements/address_list_spec.rb
  6. +1 −1  spec/mail/elements/address_spec.rb
  7. +1 −1  spec/mail/elements/date_time_element_spec.rb
  8. +1 −1  spec/mail/elements/envelope_from_element_spec.rb
  9. +1 −1  spec/mail/elements/message_ids_element_spec.rb
  10. +1 −1  spec/mail/elements/phrase_list_spec.rb
  11. +1 −1  spec/mail/elements/received_element_spec.rb
  12. +1 −1  spec/mail/encodings/base64_spec.rb
  13. +1 −1  spec/mail/encodings/encodings_spec.rb
  14. +1 −1  spec/mail/encodings/quoted_printable_spec.rb
  15. +1 −1  spec/mail/envelope_spec.rb
  16. +1 −1  spec/mail/example_emails_spec.rb
  17. +1 −1  spec/mail/field_list_spec.rb
  18. +1 −1  spec/mail/field_spec.rb
  19. +1 −1  spec/mail/fields/bcc_field_spec.rb
  20. +1 −1  spec/mail/fields/cc_field_spec.rb
  21. +1 −1  spec/mail/fields/comments_field_spec.rb
  22. +1 −1  spec/mail/fields/common/address_container_spec.rb
  23. +1 −1  spec/mail/fields/common/common_address_spec.rb
  24. +1 −1  spec/mail/fields/common/common_date_spec.rb
  25. +1 −1  spec/mail/fields/common/common_field_spec.rb
  26. +1 −1  spec/mail/fields/common/common_message_id_spec.rb
  27. +1 −1  spec/mail/fields/common/parameter_hash_spec.rb
  28. +1 −1  spec/mail/fields/content_description_field_spec.rb
  29. +1 −1  spec/mail/fields/content_disposition_field_spec.rb
  30. +1 −1  spec/mail/fields/content_id_field_spec.rb
  31. +1 −1  spec/mail/fields/content_location_field_spec.rb
  32. +1 −1  spec/mail/fields/content_transfer_encoding_field_spec.rb
  33. +1 −1  spec/mail/fields/content_type_field_spec.rb
  34. +1 −1  spec/mail/fields/date_field_spec.rb
  35. +1 −1  spec/mail/fields/from_field_spec.rb
  36. +1 −1  spec/mail/fields/in_reply_to_field_spec.rb
  37. +1 −1  spec/mail/fields/keywords_field_spec.rb
  38. +1 −1  spec/mail/fields/message_id_field_spec.rb
  39. +1 −1  spec/mail/fields/mime_version_field_spec.rb
  40. +1 −1  spec/mail/fields/received_field_spec.rb
  41. +1 −1  spec/mail/fields/references_field_spec.rb
  42. +1 −1  spec/mail/fields/reply_to_field_spec.rb
  43. +1 −1  spec/mail/fields/resent_bcc_field_spec.rb
  44. +1 −1  spec/mail/fields/resent_cc_field_spec.rb
  45. +1 −1  spec/mail/fields/resent_date_field_spec.rb
  46. +1 −1  spec/mail/fields/resent_from_field_spec.rb
  47. +1 −1  spec/mail/fields/resent_message_id_field_spec.rb
  48. +1 −1  spec/mail/fields/resent_sender_field_spec.rb
  49. +1 −1  spec/mail/fields/resent_to_field_spec.rb
  50. +1 −1  spec/mail/fields/return_path_field_spec.rb
  51. +1 −1  spec/mail/fields/sender_field_spec.rb
  52. +1 −1  spec/mail/fields/structured_field_spec.rb
  53. +1 −1  spec/mail/fields/to_field_spec.rb
  54. +1 −1  spec/mail/fields/unstructured_field_spec.rb
  55. +1 −1  spec/mail/header_spec.rb
  56. +1 −1  spec/mail/mail_spec.rb
  57. +1 −1  spec/mail/message_spec.rb
  58. +1 −1  spec/mail/mime_messages_spec.rb
  59. +1 −1  spec/mail/multipart_report_spec.rb
  60. +1 −1  spec/mail/network/delivery_methods/file_delivery_spec.rb
  61. +1 −1  spec/mail/network/delivery_methods/sendmail_spec.rb
  62. +1 −1  spec/mail/network/delivery_methods/smtp_spec.rb
  63. +1 −1  spec/mail/network/delivery_methods/test_mailer_spec.rb
  64. +1 −1  spec/mail/network/retriever_methods/pop3_spec.rb
  65. +1 −1  spec/mail/network_spec.rb
  66. +1 −1  spec/mail/parsers/address_lists_parser_spec.rb
  67. +1 −1  spec/mail/parsers/content_transfer_encoding_parser_spec.rb
  68. +1 −1  spec/mail/part_spec.rb
  69. +1 −1  spec/mail/parts_list_spec.rb
  70. +1 −1  spec/mail/round_tripping_spec.rb
  71. +1 −1  spec/mail/utilities_spec.rb
  72. +1 −1  spec/mail/version_specific/escape_paren_1_8_spec.rb
View
2  spec/mail/attachments_list_spec.rb
@@ -1,6 +1,6 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
def encode_base64( str )
Mail::Encodings::Base64.encode(str)
View
2  spec/mail/body_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Body do
View
2  spec/mail/configuration_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Configuration do
View
2  spec/mail/core_extensions_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Object do
View
2  spec/mail/elements/address_list_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::AddressList do
View
2  spec/mail/elements/address_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Address do
View
2  spec/mail/elements/date_time_element_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::DateTimeElement do
View
2  spec/mail/elements/envelope_from_element_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::EnvelopeFromElement do
View
2  spec/mail/elements/message_ids_element_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::MessageIdsElement do
View
2  spec/mail/elements/phrase_list_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::PhraseList do
View
2  spec/mail/elements/received_element_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ReceivedElement do
View
2  spec/mail/encodings/base64_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Encodings::Base64 do
View
2  spec/mail/encodings/encodings_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Encodings do
View
2  spec/mail/encodings/quoted_printable_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Encodings::QuotedPrintable do
View
2  spec/mail/envelope_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Envelope do
# From RFC4155 The application/mbox Media Type
View
2  spec/mail/example_emails_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe "Test emails" do
View
2  spec/mail/field_list_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::FieldList do
it "should be able to add new fields" do
View
2  spec/mail/field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Field do
View
2  spec/mail/fields/bcc_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::BccField do
View
2  spec/mail/fields/cc_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
# The "Cc:" field (where the "Cc" means "Carbon Copy" in the sense of
# making a copy on a typewriter using carbon paper) contains the
View
2  spec/mail/fields/comments_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::CommentsField do
#
View
2  spec/mail/fields/common/address_container_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe 'AddressContainer' do
it "should allow you to append an address to an address field result" do
View
2  spec/mail/fields/common/common_address_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::CommonAddress do
View
2  spec/mail/fields/common/common_date_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::CommonAddress do
View
2  spec/mail/fields/common/common_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::CommonField do
View
2  spec/mail/fields/common/common_message_id_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
require 'mail/fields/common/common_message_id'
describe Mail::CommonMessageId do
View
2  spec/mail/fields/common/parameter_hash_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
require 'mail/fields/common/parameter_hash'
describe Mail::ParameterHash do
View
2  spec/mail/fields/content_description_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ContentDescriptionField do
# Content-Description Header Field
View
2  spec/mail/fields/content_disposition_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ContentDispositionField do
View
2  spec/mail/fields/content_id_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ContentIdField do
# Content-ID Header Field
View
2  spec/mail/fields/content_location_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ContentLocationField do
View
2  spec/mail/fields/content_transfer_encoding_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ContentTransferEncodingField do
View
2  spec/mail/fields/content_type_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ContentTypeField do
# Content-Type Header Field
View
2  spec/mail/fields/date_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::DateField do
# The origination date field consists of the field name "Date" followed
View
2  spec/mail/fields/from_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# from = "From:" mailbox-list CRLF
View
2  spec/mail/fields/in_reply_to_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# The "In-Reply-To:" field will contain the contents of the "Message-
# ID:" field of the message to which this one is a reply (the "parent
View
2  spec/mail/fields/keywords_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::KeywordsField do
View
2  spec/mail/fields/message_id_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
# 3.6.4. Identification fields
#
# Though optional, every message SHOULD have a "Message-ID:" field.
View
2  spec/mail/fields/mime_version_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::MimeVersionField do
# MIME-Version Header Field
View
2  spec/mail/fields/received_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ReceivedField do
View
2  spec/mail/fields/references_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# The "References:" field will contain the contents of the parent's
# "References:" field (if any) followed by the contents of the parent's
View
2  spec/mail/fields/reply_to_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# reply-to = "Reply-To:" address-list CRLF
#
View
2  spec/mail/fields/resent_bcc_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# resent-bcc = "Resent-Bcc:" (address-list / [CFWS]) CRLF
View
2  spec/mail/fields/resent_cc_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# resent-cc = "Resent-Cc:" address-list CRLF
View
2  spec/mail/fields/resent_date_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ResentDateField do
it "should initialize" do
View
2  spec/mail/fields/resent_from_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# resent-from = "Resent-From:" mailbox-list CRLF
View
2  spec/mail/fields/resent_message_id_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ResentMessageIdField do
View
2  spec/mail/fields/resent_sender_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# resent-sender = "Resent-Sender:" mailbox CRLF
View
2  spec/mail/fields/resent_to_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
#
# resent-to = "Resent-To:" address-list CRLF
View
2  spec/mail/fields/return_path_field_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ReturnPathField do
it "should allow you to specify a field" do
View
2  spec/mail/fields/sender_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::SenderField do
# sender = "Sender:" mailbox CRLF
View
2  spec/mail/fields/structured_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::StructuredField do
View
2  spec/mail/fields/to_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::ToField do
#
View
2  spec/mail/fields/unstructured_field_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe Mail::UnstructuredField do
View
2  spec/mail/header_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Header do
View
2  spec/mail/mail_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe "mail" do
View
2  spec/mail/message_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Message do
View
2  spec/mail/mime_messages_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe "MIME Emails" do
View
2  spec/mail/multipart_report_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe "multipart/report emails" do
View
2  spec/mail/network/delivery_methods/file_delivery_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe "SMTP Delivery Method" do
View
2  spec/mail/network/delivery_methods/sendmail_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe "sendmail delivery agent" do
View
2  spec/mail/network/delivery_methods/smtp_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe "SMTP Delivery Method" do
View
2  spec/mail/network/delivery_methods/test_mailer_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe "Mail::TestMailer" do
before(:each) do
View
2  spec/mail/network/retriever_methods/pop3_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', '..', 'spec_helper')
+require 'spec_helper'
describe "POP3 Retriever" do
View
2  spec/mail/network_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
class MyDelivery; def initialize(settings); end; end
View
2  spec/mail/parsers/address_lists_parser_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
require 'mail/vendor/treetop'
require 'treetop/compiler'
View
2  spec/mail/parsers/content_transfer_encoding_parser_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
Treetop.load(File.join(MAIL_ROOT, 'lib/mail/parsers/rfc2822_obsolete'))
Treetop.load(File.join(MAIL_ROOT, 'lib/mail/parsers/rfc2822'))
View
2  spec/mail/part_spec.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe Mail::Part do
View
2  spec/mail/parts_list_spec.rb
@@ -1,6 +1,6 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe "PartsList" do
it "should return itself on sort" do
View
2  spec/mail/round_tripping_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
describe "Round Tripping" do
View
2  spec/mail/utilities_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'spec_helper')
+require 'spec_helper'
module Mail
class TestCase
View
2  spec/mail/version_specific/escape_paren_1_8_spec.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'spec_helper')
+require 'spec_helper'
describe "Ruby 1.8 Extensions" do
Please sign in to comment.
Something went wrong with that request. Please try again.