https://github.com/tsheporamantso/tdd
In this project we will implement a class with some methods, but we will do it by doing test-driven development (TDD). The idea is to write tests first and then the code.
https://github.com/tsheporamantso/tdd
rspec-testing ruby ruby-gem tdd-ruby
Last synced: 3 months ago
JSON representation
In this project we will implement a class with some methods, but we will do it by doing test-driven development (TDD). The idea is to write tests first and then the code.
- Host: GitHub
- URL: https://github.com/tsheporamantso/tdd
- Owner: tsheporamantso
- License: mit
- Created: 2023-11-16T17:18:47.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2023-11-17T12:28:34.000Z (over 1 year ago)
- Last Synced: 2025-01-19T23:33:30.004Z (5 months ago)
- Topics: rspec-testing, ruby, ruby-gem, tdd-ruby
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Solver
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [❓ FAQ (OPTIONAL)](#faq)
- [📝 License](#license)**Solver** is a class with 3 methods. The first method `factorial` takes an integer and returns the factorial, second method `reverse` takes a string and return it in reverse and the third method `fizzbuzz` takes a integer and return strings. All these methods are implemented using TDD, the idea is to write test first and then code.
Server
Rspec
- **Factorial of inters**
- **Reverse a string**
- **Modulus of integer and return string**
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
- Install ruby using [link](https://www.ruby-lang.org/en/documentation/installation/#apt)
### Setup
Clone this repository to your desired folder:
```sh
mkdir folder_name
cd folder_name
git clone [email protected]:tsheporamantso/TDD.git
```
### Install
Install this project with:
```sh
bundle install
```
```sh
rspec install
```
### Usage
To run the project, execute the following command:
run the result on the terminal through:
```sh
rspec ./spec/solver.rb
```
### Run tests
No tests available.
👤 **Gladwin Tshepo Ramantso**
- GitHub: [@tsheporamantso](https://github.com/tsheporamantso)
- Twitter: [@ramgt001](https://twitter.com/ramgt001)
- LinkedIn: [Tshepo Gladwin Ramantso](https://www.linkedin.com/in/tshepo-ramantso-b6a35433/)
👤 **Aung Pyae Khant**
- GitHub: [@lilskyex0x](https://github.com/lilskyex0x)
- Twitter: [@Aung Pyae Khant](https://twitter.com/LilSn0w45)
- LinkedIn: [Aung Pyae Khant](www.linkedin.com/in/aung-pyae-khant-932342251)
- [ ] **Add basic UI**
- [ ] **Refactor code**
- [ ] **Deployment on gitpages**
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/tsheporamantso/TDD/issues).
If you like this project please give a star on [github](https://github.com/tsheporamantso/OOP-School-Library) & follow us on [twitter](https://twitter.com/ramgt001) and also connect on [Linkedin](https://www.linkedin.com/in/tshepo-ramantso-b6a35433/).
I would like to thank:
- [ ] **Microverse and all the staff**
- [ ] **Microverse Communinity**
- [ ] **Thanks to my coding Partners**
- [ ] **Thanks to my Morning-Session-Group and Standup-Team Partners and**
- [ ] **Thanks to Code Reviewers**
This project is [MIT](https://github.com/tsheporamantso/TDD/blob/32acef919148ae0de8ffa52336e15e78a9d27f6a/LICENSE) licensed.