Created
February 18, 2009 07:05
-
-
Save reidmix/66236 to your computer and use it in GitHub Desktop.
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
# 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