Skip to content

Commit 473ac0c

Browse files
authored
fix mock mailgun responds (#331)
1 parent 53a8edd commit 473ac0c

14 files changed

+4180
-93
lines changed

lib/mailgun/events/events.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(client, domain)
2929
# params - a Hash of query options and/or filters.
3030
#
3131
# Returns a Mailgun::Response object.
32-
def get(params = nil)
32+
def get(params = {})
3333
self.next(params)
3434
end
3535

@@ -40,7 +40,7 @@ def get(params = nil)
4040
# params - a Hash of query options and/or filters.
4141
#
4242
# Returns a Mailgun::Response object.
43-
def next(params = nil)
43+
def next(params = {})
4444
get_events(params, @paging_next)
4545
end
4646

@@ -51,7 +51,7 @@ def next(params = nil)
5151
# params - a Hash of query options and/or filters.
5252
#
5353
# Returns Mailgun::Response object.
54-
def previous(params = nil)
54+
def previous(params = {})
5555
get_events(params, @paging_previous)
5656
end
5757

@@ -75,7 +75,7 @@ def each(&block)
7575
# paging - the URL key used for previous/next requests
7676
#
7777
# Returns a Mailgun.Response object.
78-
def get_events(params = nil, paging = nil)
78+
def get_events(params = {}, paging = nil)
7979
response = @client.get(construct_url(paging), params)
8080
extract_paging(response)
8181
response

vcr_cassettes/bounces.yml

Lines changed: 210 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)