Skip to content

Commit

Permalink
Complete TheOdinProject#3
Browse files Browse the repository at this point in the history
  • Loading branch information
crespire committed Nov 30, 2021
1 parent b142f01 commit d4c981e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions spec/03_number_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4c981e

Please sign in to comment.