Using the Ruby minitest gem, write and run tests for the code provided in this tasks resources.
Fantastic news! We've Found the answer you've been seeking!
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 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.
Posted Date: