Tips, help and links needed for Ruby Inside RSpec Roundup
Tips, help and links needed for Ruby Inside RSpec Roundup: I’m looking at creating a “round up” of useful RSpec tutorials, links, videos, resources, tips, blog posts, anything like that, for Ruby Inside. If you’ve written an article about RSpec (or want to - you’ll get traffic!) or want to recommend something I can link to, please leave a comment here.
Comments
testing rake tasks.
article about whether or not (and how) we should test
more to come soonish …
guess that should read specing rake tasks ;)
I wrote a little something about writing methods that define tests: http://trottercashion.com/2008/6/5/macro-tests
Which RSpec Matcher Should I Use
A small explanation of some of the matchers in RSpec.
</em> Excellent bits and pieces folks, thanks :)
Here are a few:
Why I don’t mind using RSpec.http://talklikeaduck.denhaven2.com/articles/2008/01/29/why-i-dont-mind-using-rspec-in-fact-ive-come-to-love-it
Validating RSS Feeds with RSpec
RSpec Anti-pattern, Don’t set controller yourself
Macro Tests shows how to writing methods that define tests in rSpec can clean things up.
http://blog.davidchelimsky.net/ – All of it. :)
How to write macros in rspec: http://www.benmabey.com/2008/06/08/writing-macros-in-rspec/
Some posts about the story runner: http://www.benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories/ http://www.benmabey.com/2008/05/10/slides-and-code-from-my-bddrspec-presentation/ http://www.benmabey.com/2008/02/04/rspec-plain-text-stories-webrat-chunky-bacon/
How to test C with rspec: http://www.benmabey.com/2007/09/09/bdd_your_c/ http://blog.objectmentor.com/articles/2008/02/04/unit-testing-c-and-c-with-ruby-and-rspec
Other good posts: http://evang.eli.st/blog/2008/5/14/refactoring-with-shared-example-groups http://evang.eli.st/blog/2007/11/22/better-rails-testing-decoupling-observers
http://evang.eli.st has some good posts about the story runner too, but are slightly dated.
Also… This is a work in progress… But a co-worker and I have been creating a textmate bundle for the story runner. We have a lot of features we want to add but it is already quite handy:
http://github.com/bmabey/rspec-story-tmbundle/tree/master
Hi All
I wrote a tutorial on understanding RSpec stories, which you might find useful:
http://blog.emson.co.uk/2008/06/understanding-rspec-stories-a-tutorial
Leave a comment if you have any questions. Thanks, Ben…
Living without an aim is like sailing without a compass.
Post a comment