thumblemonks / riot

Riot is a fast, expressive, and contextual ruby unit testing framework
http://thumblemonks.github.com/riot/
MIT License
314 stars 28 forks source link

Symbol arguments as shortcuts #7

Closed dasch closed 14 years ago

dasch commented 14 years ago

Using a Symbol as an argument to asserts could make tests more concise, e.g.

asserts(:email_address).nil

Instead of

asserts("email address") { topic.email_address } .nil
thumblemonks commented 14 years ago

Indeed. It's something we've been discussing since day 1. I would love this.

dasch commented 14 years ago

Again, monkey with a wrench: http://github.com/dasch/riot/tree/symbol-assertions

dasch commented 14 years ago

Re-implemented to fit the new architecture: http://github.com/dasch/riot/tree/symbolic-assertions

dasch commented 14 years ago

This is fixed in master.

thumblemonks commented 14 years ago

Your change was applied to riot/master :)