File tree Expand file tree Collapse file tree 1 file changed +37
-7
lines changed Expand file tree Collapse file tree 1 file changed +37
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments