Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Elixir 1.4 warnings and deprecations #7

Merged
merged 1 commit into from
Feb 6, 2017
Merged

Fix Elixir 1.4 warnings and deprecations #7

merged 1 commit into from
Feb 6, 2017

Conversation

whodidthis
Copy link
Contributor

No description provided.

@pablo-co
Copy link
Owner

pablo-co commented Feb 6, 2017

Hello, @whodidthis! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

@@ -158,7 +158,7 @@ defmodule Bamboo.PostmarkAdapterTest do
end

test "deliver/2 puts tag param" do
email = new_email |> PostmarkHelper.tag("some_tag")
email = new_email() |> PostmarkHelper.tag("some_tag")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a function call when a pipeline is only one function long

@@ -144,7 +144,7 @@ defmodule Bamboo.PostmarkAdapterTest do
end

test "deliver/2 puts template name and content" do
email = new_email |> PostmarkHelper.template("hello", [
email = new_email() |> PostmarkHelper.template("hello", [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a function call when a pipeline is only one function long

@@ -133,7 +133,7 @@ defmodule Bamboo.PostmarkAdapterTest do
end

test "deliver/2 puts template name and empty content" do
email = new_email |> PostmarkHelper.template("hello")
email = new_email() |> PostmarkHelper.template("hello")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a function call when a pipeline is only one function long

@@ -82,15 +82,15 @@ defmodule Bamboo.PostmarkAdapterTest do
end

test "deliver/2 sends the to the right url" do
new_email |> PostmarkAdapter.deliver(@config)
new_email() |> PostmarkAdapter.deliver(@config)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a function call when a pipeline is only one function long

@pablo-co
Copy link
Owner

pablo-co commented Feb 6, 2017

Ebert has finished reviewing this Pull Request and has found:

  • 4 possible new issues (including those that may have been commented here).
  • 4 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/pablo-co/bamboo_postmark/pulls/7.

@pablo-co
Copy link
Owner

pablo-co commented Feb 6, 2017

Thanks @whodidthis, it looks great. I'll merge it in.

@pablo-co pablo-co merged commit 9413651 into pablo-co:master Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants