Class: ActiveSupport::TestCase
- Inherits:
-
Object
- Object
- ActiveSupport::TestCase
- Defined in:
- lib/fast_context.rb
Class Method Summary collapse
Class Method Details
.fast_context(name, &blk) ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/fast_context.rb', line 79 def self.fast_context(name, &blk) if Shoulda.current_context Shoulda.current_context.fast_context(name, &blk) else context = Shoulda::FastContext.new(name, self, &blk) context.build end end |