summaryrefslogtreecommitdiff
path: root/fake-service/spec
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-01 17:49:13 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-01 17:49:13 -0300
commitf52efae271ddb376e7223405c3a74edd7ed598b9 (patch)
treebf76c588086b93452457c71bdbfa6cee0206c81f /fake-service/spec
parentd8360815ea07d9944f08ad378d2b89e64e1f2c9e (diff)
Changed names according to new convention on the fake service
Diffstat (limited to 'fake-service/spec')
-rw-r--r--fake-service/spec/smail/mail_spec.rb10
-rw-r--r--fake-service/spec/spec_helper.rb2
2 files changed, 6 insertions, 6 deletions
diff --git a/fake-service/spec/smail/mail_spec.rb b/fake-service/spec/smail/mail_spec.rb
index b75ceff5..96b3bb31 100644
--- a/fake-service/spec/smail/mail_spec.rb
+++ b/fake-service/spec/smail/mail_spec.rb
@@ -2,10 +2,10 @@
fixture1 = File.read(File.join(File.dirname(__FILE__), "..", "fixtures", "mail1"))
fixture2 = File.read(File.join(File.dirname(__FILE__), "..", "fixtures", "mail2"))
-describe Smail::Mail do
+describe PixelatedService::Mail do
describe "#read" do
context("simple email") do
- subject(:mail) { Smail::Mail.read(fixture1) }
+ subject(:mail) { PixelatedService::Mail.read(fixture1) }
it "reads the subject correctly" do
expect(mail.subject).to eq("Doloremque aliquid a facilis et sit numquam libero.")
@@ -39,7 +39,7 @@ BODY
end
context("with multiple recipients") do
- subject(:mail) { Smail::Mail.read(fixture2) }
+ subject(:mail) { PixelatedService::Mail.read(fixture2) }
it "reads multiple recipients correctly" do
expect(mail.to).to eq(%w(cmurphy@thoughtworks.com cgorslin@thoughtworks.com cmitchel@thoughtworks.com dnorth@thoughtworks.com dpgoodwi@thoughtworks.com dbodart@thoughtworks.com dsmith@thoughtworks.com djrice@thoughtworks.com dwhalley@thoughtworks.com))
@@ -53,7 +53,7 @@ BODY
describe ".to_s" do
context("simple email") do
- subject(:mail) { Smail::Mail.read(fixture1) }
+ subject(:mail) { PixelatedService::Mail.read(fixture1) }
it "writes correct output" do
expect(mail.to_s).to eq(<<MAIL)
@@ -76,7 +76,7 @@ MAIL
end
end
context("with multiple recipients") do
- subject(:mail) { Smail::Mail.read(fixture2) }
+ subject(:mail) { PixelatedService::Mail.read(fixture2) }
it "writes correct output" do
expect(mail.to_s).to eq(<<MAIL)
diff --git a/fake-service/spec/spec_helper.rb b/fake-service/spec/spec_helper.rb
index d25e8240..4b2cd2ad 100644
--- a/fake-service/spec/spec_helper.rb
+++ b/fake-service/spec/spec_helper.rb
@@ -1 +1 @@
-require 'smail'
+require 'pixelated_service'