forked from jorgemanrubia/mailgun_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Right now the gem is hard-coded to use the v2 api, but v3 is out. According to mailgun, v3 is backwards compatible except for the bounces endpoint, which the gem does not use (details here - http://blog.mailgun.com/default-api-version-now-v3/). This changes the (hard-coded) endpoint url from v2 to v3. Possibly solving jorgemanrubia#34.
- Loading branch information
1 parent
04ee1c1
commit cb23838
Showing
2 changed files
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
|
||
describe "#send_message" do | ||
it 'should make a POST rest request passing the parameters to the mailgun end point' do | ||
expected_url = "https://api:[email protected]/v2/some_domain/messages" | ||
expected_url = "https://api:[email protected]/v3/some_domain/messages" | ||
RestClient.should_receive(:post).with(expected_url, foo: :bar) | ||
client.send_message foo: :bar | ||
end | ||
end | ||
end | ||
end |