In this project we implemented our version of the Ruby enumerable methods, the methods we created are:
- #my_each
- #my_each_with_index
- #my_select
- #my_all?
- #my_any?
- #my_none?
- #my_count
- #my_map
- #my_inject which was tested wit a #multiply_els method
- Ruby
- Rspec
- Copy this link
- Open your terminal or command line
- Run "git clone Paste this link"
- Open the folder with your code editor
- Create a branch to work on
- Now You can edit the code and do a pull request
- Boot up your terminal and punch in "gem install rspec" to install RSpec
- You can verify your version of RSpec with "rspec --version"
- cd into project directory "Tic-Tac-Toe" and type "rspec --init" to initialize RSpec within the project
- This will generate two files, ".rspec" and "spec/spec_helper.rb"
- You can create the ruby test file inside the spec directory (eg: enum_spec.rb)
- You can simply run "rspec" in the terminal by cd into the directory in order torun the tests
- You can also run "rspec file-path" for the particular file you want to test from the directory
- You can run "rubocop" inorder to check the linter errors
👤 Bhagyashree Patra
- GitHub: @Vagyasri
- Twitter: @Vagyasri
- LinkedIn: Bhagyashree Patra
👤 Zeenat Lawal
- GitHub: @ZeenatLawal
- Twitter: @lawal_zeenat
- LinkedIn: Zeenat Lawal
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!