Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions