Sha256: 16b641c9932b424194e1c0814bef3486a4b0bb49fdd5345b0104d69991b4e4a6
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe Hoth::Definition do it "should create a Service and add it to the registry instance" do service_name = :my_service service_options = { :params => [:some_params], :returns => nil, :endpoint => :my_service_module } service = mock("ServiceMock") Hoth::Service.should_receive(:new).with(service_name, service_options).and_return(service) Hoth::ServiceRegistry.should_receive(:add_service).with(service) definition = Hoth::Definition.new definition.service service_name, service_options end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hoth-0.1.2 | spec/unit/definition_spec.rb |
hoth-0.1.1 | spec/unit/definition_spec.rb |