-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3555317
commit 74fff46
Showing
4 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ | |
describe "signup_email" do | ||
before(:each) do | ||
ApiUmbrellaConfig[:web][:contact_form_email] = "[email protected]" | ||
ApiUmbrellaConfig[:web][:default_host] = "localhost.com" | ||
end | ||
|
||
let(:api_user) do | ||
|
@@ -114,7 +115,7 @@ | |
end | ||
|
||
it "the receiver can be overwrited by the admin " do | ||
ApiUmbrellaConfig[:admin_notify_email] = "[email protected]" | ||
ApiUmbrellaConfig[:web][:admin_notify_email] = "[email protected]" | ||
subject | ||
expect(ActionMailer::Base.deliveries.first.to).to eq ["[email protected]"] | ||
end | ||
|
@@ -124,6 +125,11 @@ | |
expect(ActionMailer::Base.deliveries.first.subject).to eq "aaa bbb just subscribed" | ||
end | ||
|
||
it "send an email from the server name" do | ||
subject | ||
expect(ActionMailer::Base.deliveries.first.from).to eq ["[email protected]"] | ||
end | ||
|
||
it "send an email with usage in the body" do | ||
subject | ||
expect(ActionMailer::Base.deliveries.first.encoded).to include "I WANNA DO EVERYTHING" | ||
|