Last active
August 29, 2017 19:35
-
-
Save rebekah/9fdaa8eec4937fa33e591211c4b11a24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "minitest/autorun" | |
class English | |
def integer_conversion(number) | |
end | |
end | |
describe English do | |
before do | |
@english = English.new | |
end | |
describe "#integer_conversion" do | |
describe "when paseed 476" do | |
it "will return 'four hundred seventy six'" do | |
@english.integer_conversion('476').must_equal 'four hundred seventy six' | |
end | |
end | |
describe "when passed 3942" do | |
it "will return 'three thousand nine hundred fourty two'" do | |
@english.integer_conversion('476').must_equal 'three thousand nine hundred fourty two' | |
end | |
end | |
describe "when passed 19" do | |
it "will return 'nineteen'" do | |
@english.integer_conversion('476').must_equal 'nineteen' | |
end | |
end | |
describe "when passed -7" do | |
it "will return 'negative seven'" do | |
@english.integer_conversion('476').must_equal 'negative seven' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment