Skip to content

addod19/Testing_Custom_Enumerable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Driven Custom Ruby Enumerable Methods Development

This project is part of a series of projects to be completed by students of Microverse. The motive of this project is to replicate some enumerable methods in Ruby in a test driven environment.

The selected methods replicated in this project are:

  • each

  • each_with_index

  • select

  • all?

  • any?

  • none?

  • count

  • map

  • inject

replicated as:

  • my_each

  • my_each_with_index

  • my_select

  • my_all?

  • my_any?

  • my_none?

  • my_count

  • my_map

  • my_inject

selected methods for test driven exercise:

  • my_each

  • my_select

  • my_all?

  • my_count

  • my_map

  • my_inject

Technologies

  • Ruby

Usage

Clone the repository to your local machine

sh $ git clone https://github.com/addod19/Testing_Custom_Enumerable.git

cd into the directory

sh $ cd enumerable

open custom_enum with your favourite text editor or with irb.

Deployment

load the module and use our custom methods

ruby require "custom_enum"

Contributors

Addo Daniel Larbi

Maya Alaa Eldin Mohamed Elfeky

Contributing

  1. Fork it (https://github.com/addod19/Testing_Custom_Enumerable/fork)
  2. Create your feature branch (git checkout -b feature/[choose-a-name])
  3. Commit your changes (git commit -am 'What this commit will fix/add')
  4. Push to the branch (git push origin feature/[chosen name])
  5. Create a new Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Testing Custom Enumerable with ruby RSpec Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages