Skip to content

jdm79/gilded-rose-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Gilded Rose (in Ruby)

I did this with Jimmy Sutherland. We refactored the extremely nested code which can be found in the start code here.

How?

We wrote passing tests for all the legacy code, then proceded to refactor and rewrite the code using switch cases, going through each test until they passed.

How to install

$ git clone git@github.com:jdm79/gilded-rose-ruby.git
$ cd gilded-rose-ruby
$ bundle 

How to test

$ rspec

Example execution

$ ruby texttest_fixture.rb

About

the gilded rose in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages