Sha256: fbaf245000e05717ada65b968b554b94a0e30e09ce50c95f712993c39a079416
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/server_shared') module DdeTest describe Dde::Server, ' in general:' do it_should_behave_like "DDE Server" end describe Dde::Server do before(:each ){ @server = Dde::Server.new } after(:each) do @server.stop_service if @server.service_active? @server.stop_dde if @server.dde_active? end it 'new without parameters creates Server but does not activate DDEML or start service' do @server.id.should == nil @server.service.should == nil @server.dde_active?.should == false @server.service_active?.should == false end describe '#start_service' do it 'service name should be given explicitly' do expect{@server.start_dde{|*args|}.start_service}.to raise_error ArgumentError, /0 for 1/ expect{@server.start_service {|*args|}}.to raise_error ArgumentError, /0 for 1/ end it 'callback block should be given explicitly' do lambda{@server.start_service('myservice')}.should raise_error Dde::Errors::ServiceError @server.service_active?.should == false end end #describe '#start_service' end # describe Dde::Server do end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dde-0.2.11 | spec/dde/server_spec.rb |