Ruby में एक मजबूत testing culture है, जिसमें दो मुख्य frameworks हैं: RSpec (एक expressive, behavior-driven DSL — बहुत लोकप्रिय) और Minitest (सरल, lightweight, Rails का default)। दोनों आपको code behavior को verify करने वाले tests लिखने देते हैं, mocking, fixtures, और rich assertions के साथ।
RSpec — expressive, behavior-driven
.describe
describe
it
calc = .new
expect(calc.add(, )).to eq()
it
expect(.new.add(-, )).to eq()
