Sha256: 97773692ff6fe83e9e499efbf459e1969d1f69b44e5cc6ea762a18c925d73fdc
Contents?: true
Size: 605 Bytes
Versions: 5
Compression:
Stored size: 605 Bytes
Contents
module TestBelt; end module TestBelt::ShouldaMacros; end module TestBelt::ShouldaMacros::Context end if defined? Shoulda::Context module Shoulda class Context alias_method :before, :setup alias_method :after, :teardown # TODO: override described_type to use string blessed with constantize method # alias_method(:orig_described_type, :described_type) rescue NameError # def described_type # self.name.gsub(/Test$/, '').constantize # end # protected :described_type end end Shoulda::Context.extend(TestBelt::ShouldaMacros::Context) end
Version data entries
5 entries across 5 versions & 1 rubygems