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

Version Path
hoth-0.4.2 spec/unit/service_definition_spec.rb
hoth-0.4.1 spec/unit/service_definition_spec.rb
hoth-0.4.0 spec/unit/service_definition_spec.rb
hoth-0.3.4 spec/unit/service_definition_spec.rb
hoth-0.3.3 spec/unit/service_definition_spec.rb
hoth-0.3.2.beta4 spec/unit/service_definition_spec.rb
hoth-0.3.2.beta3 spec/unit/service_definition_spec.rb
hoth-0.3.2.beta2 spec/unit/service_definition_spec.rb
hoth-0.3.2.beta1 spec/unit/service_definition_spec.rb
hoth-0.3.1 spec/unit/service_definition_spec.rb
sk-hoth-0.3.5 spec/unit/service_definition_spec.rb
sk-hoth-0.3.4 spec/unit/service_definition_spec.rb
sk-hoth-0.3.2 spec/unit/service_definition_spec.rb
sk-hoth-0.3.1 spec/unit/service_definition_spec.rb
sk-hoth-0.3.0 spec/unit/service_definition_spec.rb
hoth-0.3.0 spec/unit/service_definition_spec.rb