discourse/discourse — pull request #331 by goshakkk (2013-03-02 07:43:00+00:00)
Title: Make Enum#valid? specs test the right thing

`#valid?` is intended to just check if some key is present or not (effectively, just an alias for `#has_key?`) so it makes sense to only test if it checks key presence (both successful and failing scenarios).