Skip to content

Using RSpec to test a tic-tac-toe CLI game build with Ruby.

Notifications You must be signed in to change notification settings

Elukoye/rspec-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project: Testing a TIC-TAC-TOE CLI game using RSpec

Peek 2020-03-05 14-42

Description

  • This is project focuses on practising TDD (Test Driven Development).
  • App being tested is a TIC-TAC-TOE CLI game built with Ruby :
  • Initiating the project folder with a rspec --init command.
  • Creating _spec.rb files where the tests will be performed.
  • Each method will have its behaviour tested.
  • Original project specifications can be found here

Environment

  • Ruby version 2.6.5
  • Rspec 3.6.0

Getting started

  • To get started with the app, clone or download the repo :Clone the repo

Installing and Running RSpec tests:

  • Run gem install rspec to install rspec
  • Run rspec --init to generate boilerplate configuration files
  • Create spec folder to store your specs/test files
  • Add require '../name_of_file_being_tested.rb' to your _spec.rb files
  • Run rspec ./spec/name_of_your_test_file_spec.rb to run the specs
  • If all the tests pass,congratulations , if not refactor
  • Click here for a more details about setting up RSpec in your Ruby project

Show your support

  • Give a ⭐️ if you like this project!

📝 License

Authors

👤 Author1

👤 Author1

About

Using RSpec to test a tic-tac-toe CLI game build with Ruby.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages