Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Update specs with lowercased message_id parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawson Kurtz committed Mar 27, 2015
1 parent 3596576 commit 49ad7ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/special_delivery/events_controller_spec.rb
Expand Up @@ -5,7 +5,7 @@
context "with valid authenticity parameters" do
let(:params) {
{
"Message-Id" => "<abc123@test.com>",
"message-id" => "<abc123@test.com>",
"event" => "opened",
"token" => "mailgun-token",
"timestamp" => "1234567890",
Expand Down Expand Up @@ -45,7 +45,7 @@
context "with invalid authenticity parameters" do
let(:params) {
{
"Message-Id" => "<abc123@test.com>",
"message-id" => "<abc123@test.com>",
"event" => "opened",
"token" => "mailgun-token",
"timestamp" => "1234567890",
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/special_delivery/base_event_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe SpecialDelivery::BaseEvent do
describe "#issue_callback" do
context "if a message-id is provided" do
subject { described_class.new('Message-Id' => '<123@test.com>') }
subject { described_class.new('message-id' => '<123@test.com>') }

context "if a Delivery is found with the provided message id" do
let(:delivery) { double('delivery') }
Expand Down
4 changes: 2 additions & 2 deletions spec/support/shared_examples/a_mailgun_event.rb
@@ -1,7 +1,7 @@
shared_examples "a Mailgun event" do
describe "#issue_callback" do
context "if a message-id is provided" do
subject { described_class.new('Message-Id' => '<123@test.com>') }
subject { described_class.new('message-id' => '<123@test.com>') }

context "if a Delivery is found with the provided message id" do
let(:delivery) { double('delivery') }
Expand Down Expand Up @@ -36,4 +36,4 @@
end
end
end
end
end

0 comments on commit 49ad7ae

Please sign in to comment.