GildedRose-Refactoring-Kata/ruby
2024-01-17 20:05:35 +01:00
..
.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 should syntax is deprecated, changed the first test to expect syntax 2016-08-02 15:03:07 +02:00
gilded_rose_tests.rb Fixed and add minitest 2024-01-17 20:05:35 +01:00
gilded_rose.rb Change line separator from CRLF to LF 2020-09-25 16:45:40 +02:00
README.md doc - update command to run ruby tests 2024-01-07 12:09:21 +13:00
texttest_fixture.rb Change line separator from CRLF to LF 2020-09-25 16:45:40 +02:00

Gilded Rose starting position in Ruby

Installation

Run the unit tests from the Command-Line

Ensure you have RSpec installed

gem install rspec
rspec 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