Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 480 Bytes
# RSpec emulation layer.
require 'detest'
module Detest
alias describe D
alias context D
alias it D
def before what, &block
meth =
case what
when :each then :<
when :all then :<<
else raise ArgumentError, what
end
send meth, &block
end
def after what, &block
meth =
case what
when :each then :>
when :all then :>>
else raise ArgumentError, what
end
send meth, &block
end
end