Module: Shoes::Spec
- Defined in:
- lacci/lib/shoes-spec.rb
Overview
A Scarpe-compatible display service can set Shoes::Spec.instance to a ShoesSpec testing class, and use it to run Shoes-Spec code. A Shoes application should never do this. It's intended to be used by display services.
Class Method Summary collapse
Class Method Details
.instance ⇒ Object
9 10 11 |
# File 'lacci/lib/shoes-spec.rb', line 9 def self.instance @instance end |
.instance=(spec_inst) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lacci/lib/shoes-spec.rb', line 13 def self.instance=(spec_inst) if @instance && @instance != spec_inst raise "Lacci can only use a single ShoesSpec implementation at one time!" end @instance = spec_inst end |