Skip to content

Commit d313a69

Browse files
authored
Add updated setup instructions for ubuntu and macos (#3569)
1 parent 9997c10 commit d313a69

File tree

1 file changed

+37
-7
lines changed

1 file changed

+37
-7
lines changed

CONTRIBUTING.md

+37-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,43 @@ Here are some ways _you_ can contribute:
2626

2727
### Running tests locally
2828

29-
To run the test suite, you need PhantomJS and ImageMagick (or GraphicsMagick).
30-
31-
Example on macOS using Homebrew:
32-
33-
brew cask install phantomjs
34-
brew install imagemagick
35-
bundle exec rspec
29+
To run the test suite, you need Google Chrome and ImageMagick (or GraphicsMagick).
30+
31+
Example installation on macOS using Homebrew:
32+
33+
```bash
34+
# install imagemagick:
35+
brew install imagemagick
36+
# install google chrome with cask:
37+
brew install brew-cask
38+
brew cask install google-chrome
39+
```
40+
41+
Example installation on Ubuntu:
42+
43+
```bash
44+
# install imagemagick:
45+
sudo apt update -y && sudo apt install imagemagick -y
46+
# install google chrome:
47+
sudo apt update -y && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo apt install ./google-chrome-stable_current_amd64.deb -y
48+
```
49+
50+
Then you need to do this one-time setup:
51+
52+
```bash
53+
bundle install
54+
yarn install
55+
# install dependencies for each appraisal:
56+
bundle exec appraisal install
57+
# precompile assets in the dummy app:
58+
cd spec/dummy_app && yarn install && yarn build && yarn build:css && cd -
59+
```
60+
61+
Then you will be able to run the specs:
62+
63+
```bash
64+
bundle exec appraisal rails-7.0 rspec
65+
```
3666

3767
### Tests run against multiple versions of Rails
3868

0 commit comments

Comments
 (0)