Skip to content

Commit

Permalink
Complete assignment TheOdinProject#3
Browse files Browse the repository at this point in the history
  • Loading branch information
missopi committed Aug 18, 2023
1 parent d6b6b3b commit 7fdebba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/13_input_output_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7fdebba

Please sign in to comment.