Last active
December 23, 2015 16:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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