Skip to content

wdi-sg/rspec-testing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Rspec for Test-Driven Development

Getting Started

  • Fork and clone this repository
  • Run bundle install to install dependencies
    • Run rspec to run tests
    • Run rubocop to lint code

Take a look at the starter code. You'll see blueprints for two different classes within the lib folder, as well as tests in a spec folder for the implementation of these classes.

Requirements

Implement the classes so that the tests succeed, using TDD principles.

  1. Run test (test should fail)
  2. Write code to try to make the test pass
  3. Run test (if the test fails, return to step 1)
  4. Refactor code if needed

Run rspec in the starter-code folder to run the tests. Take a look at the specs if you get stuck.


Licensing

  1. All content is licensed under a CC-BY-NC-SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

About

[ruby, testing]

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%