1, http://rubyinstaller.org/downloads download Rubyinstaller and Developmentkit (note the version number to correspond)
2, installation Rubyinstaller and decompression Developmentkit
3. Open cmd, enter Developmentkit extract directory, execute ruby DK.RB init
4. Run the Ruby dk.rb install installation Developmentkit
5. Control Panel-system-Advanced settings-environment variable-system variable path to add Ruby and Developmentkit bin directory
6. Gem Install JSON
7. Gem Install cucumber
8. Gem Install RSpec
9, http://adoxa.altervista.org/ansicon/download ansi166
10. Double-clickansicon.exe input ansicon -I return, ansicon -i-u return
11. Switch the address in CMD toCucumberOfExamples\i18n\en\features Directory
12, cucumber addition.feature
Note: There is no source when installing JSON, cucumber, etc.;
Solution: https://gems.ruby-china.org/
Ruby Cucumber Environment