RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

An RSpec-like test DSL in Ruby, from scratch

A walkthrough of building a tiny RSpec-style DSL (describe, it, expect, plus eq/contain matchers). Uses instance_eval to run blocks in the DSL context and lambdas as matchers: https://razorjack.net/implementing-dsl-in-ruby-rspec/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in