Skip to content

Instantly share code, notes, and snippets.

@reidmix reidmix/lolspek
Created Feb 18, 2009

Embed
What would you like to do?
# 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
You can’t perform that action at this time.