Skip to content

Instantly share code, notes, and snippets.

@echojc
Last active December 17, 2015 05:59
Show Gist options
  • Save echojc/5562397 to your computer and use it in GitHub Desktop.
Save echojc/5562397 to your computer and use it in GitHub Desktop.
How Corey Haines structed his tests for the Roman Numerals kata according to http://youtu.be/vX-Yym7166Y
describe "Converting arabic numbers to roman numerals" do
{
1 => "I",
2 => "II",
5 => "V"
#...
}.each_pair do |arabic, roman|
it "converts #{arabic} to #{roman}" do
expect(convert(arabic)).to eq(roman)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment