|
1 |
| -# RSpec Mocks [](http://travis-ci.org/rspec/rspec-mocks) [](https://codeclimate.com/github/rspec/rspec-mocks) |
| 1 | +# RSpec Mocks [](http://travis-ci.org/rspec/rspec-mocks) [](https://codeclimate.com/github/rspec/rspec-mocks) |
2 | 2 | rspec-mocks is a test-double framework for rspec with support for method stubs,
|
3 | 3 | fakes, and message expectations on generated test-doubles and real objects
|
4 | 4 | alike.
|
|
8 | 8 | gem install rspec # for rspec-core, rspec-expectations, rspec-mocks
|
9 | 9 | gem install rspec-mocks # for rspec-mocks only
|
10 | 10 |
|
11 |
| -Want to run against the `master` branch? You'll need to include the dependent |
| 11 | +Want to run against the `main` branch? You'll need to include the dependent |
12 | 12 | RSpec repos as well. Add the following to your `Gemfile`:
|
13 | 13 |
|
14 | 14 | ```ruby
|
15 | 15 | %w[rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
|
16 |
| - gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'master' |
| 16 | + gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'main' |
17 | 17 | end
|
18 | 18 | ```
|
19 | 19 | ## Contributing
|
@@ -53,7 +53,7 @@ book = instance_double("Book", :pages => 250)
|
53 | 53 | Verifying doubles have some clever tricks to enable you to both test in
|
54 | 54 | isolation without your dependencies loaded while still being able to validate
|
55 | 55 | them against real objects. More detail is available in [their
|
56 |
| -documentation](https://github.com/rspec/rspec-mocks/blob/master/features/verifying_doubles). |
| 56 | +documentation](https://github.com/rspec/rspec-mocks/blob/main/features/verifying_doubles). |
57 | 57 |
|
58 | 58 | Verifying doubles can also accept custom identifiers, just like double(), e.g.:
|
59 | 59 |
|
@@ -403,7 +403,7 @@ your code.
|
403 | 403 | ## Stubbing and Hiding Constants
|
404 | 404 |
|
405 | 405 | See the [mutating constants
|
406 |
| -README](https://github.com/rspec/rspec-mocks/blob/master/features/mutating_constants/README.md) |
| 406 | +README](https://github.com/rspec/rspec-mocks/blob/main/features/mutating_constants/README.md) |
407 | 407 | for info on this feature.
|
408 | 408 |
|
409 | 409 | ## Use `before(:example)`, not `before(:context)`
|
|
0 commit comments