How can I describe RSpec test to check if the array doesn’t include some value? Something like this:
tags.should include("one")
tags.should not include("two")
I can rewrite my condition:
tags.include?("two").should be_false
but I’m looking for more beautiful solution.
RSpec has
should_notas well asshould.Here some more examples of the include matcher.