Skip to content

Instantly share code, notes, and snippets.

@reidmix
Created February 18, 2009 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reidmix/66236 to your computer and use it in GitHub Desktop.
Save reidmix/66236 to your computer and use it in GitHub Desktop.
# This is for your entertainment only. Use at your own risk.
#
# allour ApplicationController do
# ohai(:each) do
# @lol = 'spek'
# end
#
# canhaz "should work" do
# @lol.should == 'spek'
# end
#
# kthxbye(:all) do
# puts 'kthxbye'
# end
# end
Spec::Example::ExampleGroupMethods.module_eval do
alias_method :canhaz, :example
alias_method :allour, :describe
end
Spec::DSL::Main.module_eval do
alias_method :allour, :describe
end
Spec::Example::BeforeAndAfterHooks.module_eval do
alias_method :ohai, :append_before
alias_method :kthxbye, :prepend_after
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment