Ruby - Testing with RSpec and Minitest
In RSpec, what does the matcher
expect(value).to be_nil check for?expect(value).to be_nil check for?be_nil matcherbe_nil matcher checks if the tested value is exactly nil.be_nil behavior.value is nil. -> Option Bbe_nil = check for nil [OK]be_nil to check for nil values only [OK]be_nil with eq(nil) (similar but different in some contexts)be_nil to check empty strings15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions