Question: Using the Ruby minitest gem, write and run tests for the code provided in this tasks resources. Complete the tests required (as indicted by the

Using the Ruby minitest gem, write and run tests for the code provided in this tasks resources. Complete the tests required (as indicted by the comments) in tester_demo.rb in this tasks Resources.

# tester_demo.rb

require \"minitest/autorun\"

require_relative \"student\"

class StudentTest

def test_student_id_is_integer

assert_kind_of Integer, get_student_id(2)

end

# insert a test here for the finding the correct student for id 300

# insert a test here for returning \"Not Found\" for student with id 800

# insert a test here for finding the correct student name for array position 0

end

If this could be done using the ruby minitest functions it be helpful

thank you.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!