reidmix (owner)

Revisions

gist: 66236 Download_button fork
public
Public Clone URL: git://gist.github.com/66236.git
lolspek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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