From 7fdebba5c441835c59b47faa5d5000606dc0d342 Mon Sep 17 00:00:00 2001 From: missopi Date: Fri, 18 Aug 2023 15:15:40 +0100 Subject: [PATCH] Complete assignment #3 --- spec/13_input_output_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/13_input_output_spec.rb b/spec/13_input_output_spec.rb index 25f8ae8..36fc0b9 100644 --- a/spec/13_input_output_spec.rb +++ b/spec/13_input_output_spec.rb @@ -98,7 +98,7 @@ describe '#verify_input' do subject(:game_check) { described_class.new } - # Note: #verify_input will only return a value if it matches /^[0-9]$/ + # NOTE: #verify_input will only return a value if it matches /^[0-9]$/ context 'when given a valid input as argument' do it 'returns valid input' do @@ -112,7 +112,10 @@ # Write a test for the following context. context 'when given invalid input as argument' do - xit 'returns nil' do + it 'returns nil' do + user_input = '89' + verified_input = game_check.verify_input(user_input) + expect(verified_input).to eq(nil) end end end