Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Last active December 23, 2015 16:39
Show Gist options
  • Save dchelimsky/6663681 to your computer and use it in GitHub Desktop.
Save dchelimsky/6663681 to your computer and use it in GitHub Desktop.
Proof of concept (absolute hack - do not use this for anything but experimentation) of ideas discussed in http://blog.davidchelimsky.net/slides/a-rubyist-in-clojure-land at slide #52
class RSpec::Core::ExampleGroup
class << self
alias it describe
alias wrapped_example example
def example(&block)
wrapped_example { assert &block }
end
end
end
class RSpec::Core::Formatters::DocumentationFormatter
def example_passed(*)
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment