GildedRose-Refactoring-Kata/ruby
2024-01-03 16:07:20 +05:30
..
.buildpath add Ruby Eclipse settings 2014-01-25 23:01:39 +01:00
.gitignore added ruby gitignore 2020-05-07 08:44:42 +02:00
.loadpath add Ruby Eclipse settings 2014-01-25 23:01:39 +01:00
.project add Ruby Eclipse settings 2014-01-25 23:01:39 +01:00
.rspec nested formatter was renamed to documentation 2016-08-02 15:02:20 +02:00
gilded_rose_spec.rb Added spec for GildedRose class 2024-01-03 16:07:20 +05:30
gilded_rose_tests.rb Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00
gilded_rose.rb Applied requested changes and eliminated the 'Item' class 2024-01-03 15:50:25 +05:30
item.rb Created separate file for 'Item' class 2024-01-03 15:51:14 +05:30
README.md improve Ruby docs 2023-11-03 15:51:31 +01:00
texttest_fixture.rb Updated file to use 'require_relative' for internal file dependencies 2024-01-03 15:52:43 +05:30

Gilded Rose starting position in Ruby

Installation

Run the unit tests from the Command-Line

Ensure you have RSpec installed

gem install rspec
ruby gilded_rose_spec.rb

Run the TextTest fixture from the Command-Line

For e.g. 10 days:

ruby texttest_fixture.rb 10

You should make sure the command shown above works when you execute it in a terminal before trying to use TextTest (see below).

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. You will need to specify the Ruby executable and interpreter in config.gr. Uncomment these lines:

executable:${TEXTTEST_HOME}/ruby/texttest_fixture.rb
interpreter:ruby