require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/server_shared') module DDETest describe DDE::Server do before(:each ){ @server = DDE::Server.new } it_should_behave_like "DDE Server" 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 end end end