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
53 54 55 56 57 58 |
# File 'lacci/lib/scarpe/niente/shoes_spec.rb', line 53 def drawable(*specs) drawables = Shoes::App.instance.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 |