Use assert_nil instead of testing for equality