Skip to content

Commit

Permalink
fix mock mailgun responds (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrishko authored Jan 26, 2025
1 parent 53a8edd commit 473ac0c
Show file tree
Hide file tree
Showing 14 changed files with 4,180 additions and 93 deletions.
8 changes: 4 additions & 4 deletions lib/mailgun/events/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize(client, domain)
# params - a Hash of query options and/or filters.
#
# Returns a Mailgun::Response object.
def get(params = nil)
def get(params = {})
self.next(params)
end

Expand All @@ -40,7 +40,7 @@ def get(params = nil)
# params - a Hash of query options and/or filters.
#
# Returns a Mailgun::Response object.
def next(params = nil)
def next(params = {})
get_events(params, @paging_next)
end

Expand All @@ -51,7 +51,7 @@ def next(params = nil)
# params - a Hash of query options and/or filters.
#
# Returns Mailgun::Response object.
def previous(params = nil)
def previous(params = {})
get_events(params, @paging_previous)
end

Expand All @@ -75,7 +75,7 @@ def each(&block)
# paging - the URL key used for previous/next requests
#
# Returns a Mailgun.Response object.
def get_events(params = nil, paging = nil)
def get_events(params = {}, paging = nil)
response = @client.get(construct_url(paging), params)
extract_paging(response)
response
Expand Down
211 changes: 210 additions & 1 deletion vcr_cassettes/bounces.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 473ac0c

Please sign in to comment.