Keep RSpec Current
November 17th, 2007
I like living on the edge with RSpec. It actually is not so bad. Every week or so I do an update on the trunk, but this is a few steps that should be automated, this is how you do it.
Read the rest of this entryRSpec Textmate Bundle Troubles
November 16th, 2007
I love RSpec, I love textmate… but sometimes… they just don’t love each other…
Read the rest of this entryLatest comments
- Ali Rizvi
Did you mean Person.new instead of MyStruct.new in your second code excerpt?
Keep up the good work! Ali
- Mikel
@Clemens
I actually use Geoffrey’s approach in all my spec’s in addition to this little builder.
The idea of the...
- Clemens Kofler
Geoffrey Grosenbach uses another method in his screencasts sometimes.
In your user_spec.rb, you’d have the following code:module UserSpecHelper...
- Xavier Shay
Even quicker way to assign User.find to a variable: user = _
the value of the last line executed is...
- Mikel
Duncan, good point, I changed the code above. Thanks for that.
- Duncan Beevers
It might be better to use a method name like build_valid instead of just build.
This way, you could use...