From d4c981e157a28d226851a9dd881ca8a7b3b0a5a9 Mon Sep 17 00:00:00 2001 From: crespire Date: Tue, 30 Nov 2021 13:10:13 -0500 Subject: [PATCH] Complete #3 --- spec/03_number_spec.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/spec/03_number_spec.rb b/spec/03_number_spec.rb index f2ed6dd..f1aa2ce 100644 --- a/spec/03_number_spec.rb +++ b/spec/03_number_spec.rb @@ -62,34 +62,35 @@ def initialize describe Array do context 'when my_array has perfect values' do # Write a let variable 'my_array' that passes all tests. + let(:my_array) { [-3, 105, 42, 5, -9, 98] } # remove the 'x' before running this test - xit 'has a specific first value' do + it 'has a specific first value' do expect(my_array.first).to be_odd.and be <= -1 end # remove the 'x' before running this test - xit 'has a specific last value' do + it 'has a specific last value' do expect(my_array.last).to be_even.and be < 99 end # remove the 'x' before running this test - xit 'has a specific min value' do + it 'has a specific min value' do expect(my_array.min).not_to be < -9 end # remove the 'x' before running this test - xit 'has a specific max value' do + it 'has a specific max value' do expect(my_array.max).to be > 100 end # remove the 'x' before running this test - xit 'includes a value of 42' do + it 'includes a value of 42' do expect(my_array).to include(42) end # remove the 'x' before running this test - xit 'has a fourth element' do + it 'has a fourth element' do expect(my_array[3]).not_to be_nil end end