A basic starter setup for Ruby, with RSpec
This setup uses the programming language Ruby, and the testing tool RSpec.
If you don't have Ruby installed, please follow the instructions here: https://www.codecademy.com/articles/ruby-setup
- Clone this repo, or download this repo's contents to your machine using the following link: https://github.com/CodingBlackFemales/ruby-skeleton/archive/refs/heads/main.zip
- Unzip this file into a directory of your choice
- Open your code editor, and navigate to the directory
- Open the terminal in your code editor
- To install RSpec, in your terminal run
bundle install
- Feel free to keep
lib/greeting.rb
andspec/greeting_spec.rb
as a reference, or replace them with your own files
In your terminal, run:
rspec
To run tests displaying the test name, run:
rspec -f d
If you'd like to mess around with code in the lib
directory, you can require it in the bin/console
file and run the following in the terminal:
bin/console