Sha256: bdbc9186649c7e743c77eb6f0e6fb0876a895354df1f7f14cbe31a181fed471d
Contents?: true
Size: 579 Bytes
Versions: 16
Compression:
Stored size: 579 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) module Hoth describe ServiceDefinition do it "should create a Service and add it to the registry instance" do service_name = :my_service definition = ServiceDefinition.new definition.service service_name do |some_params| returns :nothing end service = ServiceRegistry.locate_service(service_name) service.should_not be(nil) service.params_arity.should be(1) service.return_nothing?.should be(true) end end end
Version data entries
16 entries across 16 versions & 2 rubygems