From 5e0878f54583c58fba5687c5d52b2ce96d3460e8 Mon Sep 17 00:00:00 2001 From: Nicholas McDermott Date: Tue, 20 Dec 2016 03:47:03 +0000 Subject: [PATCH] Done. --- spec/current_age_for_birth_year_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/current_age_for_birth_year_spec.rb b/spec/current_age_for_birth_year_spec.rb index 7d0b09b..2119b13 100644 --- a/spec/current_age_for_birth_year_spec.rb +++ b/spec/current_age_for_birth_year_spec.rb @@ -1,9 +1,13 @@ +def current_age_for_birth_year(birth_year) + 2016-birth_year +end + require_relative '../current_age_for_birth_year.rb' describe "current_age_for_birth_year method" do it "returns the age of a person based on the year of birth" do age_of_person = current_age_for_birth_year(1984) - + expect(age_of_person).to eq(32) end end