Skip to content

Commit

Permalink
Merge pull request #1026 from baweaver/patch-2
Browse files Browse the repository at this point in the history
README.md Spacing Fixes
  • Loading branch information
bblimke committed Aug 19, 2023
2 parents 87786a2 + 89c4361 commit 0d422a1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,24 @@ Supported Ruby Interpreters
## Installation

```bash
gem install webmock
gem install webmock
```
or alternatively:

```ruby
# add to your Gemfile
group :test do
gem "webmock"
end
# add to your Gemfile
group :test do
gem "webmock"
end
```

### or to install the latest development version from github master

git clone http://github.com/bblimke/webmock.git
cd webmock
rake install
```bash
git clone http://github.com/bblimke/webmock.git
cd webmock
rake install
```

## Upgrading from v1.x to v2.x

Expand Down Expand Up @@ -381,7 +383,8 @@ RestClient.post('www.example.net', 'abc') # ===> "abc\n"

### Dynamically evaluated raw responses recorded with `curl -is`

`curl -is www.example.com > /tmp/www.example.com.txt`
`curl -is www.example.com > /tmp/www.example.com.txt`

```ruby
stub_request(:get, "www.example.com").
to_return(lambda { |request| File.new("/tmp/#{request.uri.host.to_s}.txt") })
Expand Down

0 comments on commit 0d422a1

Please sign in to comment.