Class: Niente::ShoesSpecTest
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- Niente::ShoesSpecTest
- Defined in:
- lacci/lib/scarpe/niente/shoes_spec.rb
Instance Method Summary collapse
Instance Method Details
#drawable(*specs) ⇒ Object
52 53 54 55 56 57 |
# File 'lacci/lib/scarpe/niente/shoes_spec.rb', line 52 def drawable(*specs) drawables = Shoes::App.find_drawables_by(*specs) raise Shoes::Errors::MultipleDrawablesFoundError, "Found more than one #{finder_name} matching #{args.inspect}!" if drawables.size > 1 raise Shoes::Errors::NoDrawablesFoundError, "Found no #{finder_name} matching #{args.inspect}!" if drawables.empty? Niente::ShoesSpecProxy.new(drawables[0]) end |