Skip to content

Commit

Permalink
Version 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Nov 12, 2020
1 parent bacb8a5 commit f61d51a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

# 3.10.0

* Added option to global stubs to have lower priority than local stubs.

WebMock.globally_stub_request(:after_local_stubs) do
{ body: "global stub body" }
end

stub_request(:get, "www.example.com").to_return(body: 'non-global stub body')

expect(http_request(:get, "http://www.example.com/").body).to eq("non-global stub body")

Thanks to [Marek Kasztelnik](https://github.com/mkasztelnik)

# 3.9.5

* Prevent overwriting `teardown` method in Test::Unit
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,7 @@ People who submitted patches and new features or suggested improvements. Many th
* Adam Harwood
* Ben Koshy
* Jesse Bowes
* Marek Kasztelnik

For a full list of contributors you can visit the
[contributors](https://github.com/bblimke/webmock/contributors) page.
Expand Down
2 changes: 1 addition & 1 deletion lib/webmock/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WebMock
VERSION = '3.9.5' unless defined?(::WebMock::VERSION)
VERSION = '3.10.0' unless defined?(::WebMock::VERSION)
end

0 comments on commit f61d51a

Please sign in to comment.