Skip to content

Commit f26d900

Browse files
committed
Update README
1 parent 39128aa commit f26d900

1 file changed

Lines changed: 10 additions & 21 deletions

File tree

README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,19 @@ Fork, fix, then send a Pull Request.
3131

3232
To run the test suite locally against all supported frameworks:
3333

34-
% bundle install
35-
% rake spec:all
34+
```sh
35+
bundle install
36+
bin/appraisal bundle install
37+
bin/appraisal rspec
38+
bin/appraisal rspec ./spec/requests/users_spec.rb
39+
```
3640

3741
To target the test suite against one framework:
3842

39-
% rake spec:rails-4-2-stable
40-
41-
You can find a list of supported spec tasks by running rake -T. You may also find it useful to run a specific test for a specific framework. To do so, you'll have to first make sure you have bundled everything for that configuration, then you can run the specific test:
42-
43-
% BUNDLE_GEMFILE='gemfiles/rails-4-2-stable.gemfile' bundle install -j 4
44-
% BUNDLE_GEMFILE='gemfiles/rails-4-2-stable.gemfile' bundle exec rspec ./spec/requests/users_spec.rb
45-
46-
### Rake and Bundler
47-
48-
If you use a shell plugin (like oh-my-zsh:bundler) that auto-prefixes commands with `bundle exec` using the `rake` command will fail.
49-
50-
Get the original command with `type -a rake`:
51-
52-
% type -a rake
53-
rake is an alias for bundled_rake
54-
rake is /Users/username/.rubies/ruby-2.2.3/bin/rake
55-
rake is /usr/bin/rake
56-
57-
In this situation `/Users/username/.rubies/ruby-2.2.3/bin/rake` is the command you should use.
43+
```sh
44+
bin/appraisal rails_8.1 rspec
45+
bin/appraisal rails_8.1 rspec ./spec/requests/users_spec.rb
46+
```
5847

5948
## License
6049

0 commit comments

Comments
 (0)