Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Spec Cleanup: use correct syntax for address fields #482

Merged
merged 1 commit into from

2 participants

@bpot

Looks like the initializers for these address fields were updated to take a single argument but the specs weren't updated and still used the old syntax.

@jeremy jeremy merged commit 228d61d into mikel:master
@jeremy jeremy referenced this pull request from a commit
@jeremy jeremy Update CHANGELOG for #482, #485 8fd9272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 22, 2012
  1. @bpot
This page is out of date. Refresh to see the latest.
View
2  spec/mail/fields/from_field_spec.rb
@@ -9,7 +9,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::FromField.new("From", "Mikel") }.should_not raise_error
+ doing { Mail::FromField.new("From: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/reply_to_field_spec.rb
@@ -9,7 +9,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::ReplyToField.new("ReplyTo", "Mikel") }.should_not raise_error
+ doing { Mail::ReplyToField.new("Reply-To: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/resent_bcc_field_spec.rb
@@ -8,7 +8,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::ResentBccField.new("ResentBcc", "Mikel") }.should_not raise_error
+ doing { Mail::ResentBccField.new("Resent-Bcc: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/resent_cc_field_spec.rb
@@ -8,7 +8,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::ResentCcField.new("ResentCc", "Mikel") }.should_not raise_error
+ doing { Mail::ResentCcField.new("Resent-Cc: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/resent_from_field_spec.rb
@@ -8,7 +8,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::ResentFromField.new("ResentFrom", "Mikel") }.should_not raise_error
+ doing { Mail::ResentFromField.new("Resent-From: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/resent_sender_field_spec.rb
@@ -8,7 +8,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::ResentSenderField.new("ResentSender", "Mikel") }.should_not raise_error
+ doing { Mail::ResentSenderField.new("Resent-Sender: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/resent_to_field_spec.rb
@@ -8,7 +8,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::ResentToField.new("ResentTo", "Mikel") }.should_not raise_error
+ doing { Mail::ResentToField.new("Resent-To: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
View
2  spec/mail/fields/sender_field_spec.rb
@@ -8,7 +8,7 @@
describe "initialization" do
it "should initialize" do
- doing { Mail::SenderField.new("Sender", "Mikel") }.should_not raise_error
+ doing { Mail::SenderField.new("Sender: Mikel") }.should_not raise_error
end
it "should mix in the CommonAddress module" do
Something went wrong with that request. Please try again.