Sha256: bac941afcf46d56a883123626977a662b19f7dac3a3487893818a30214ffec3d

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

require 'spec_helper'

describe Virginia::Service do
  class DummyHandler
    def initialize(host, port)
    end
  end

  let(:host) { "127.0.0.1" }
  let(:port) { 8989 }
  let(:handler) { DummyHandler }
  before :each do
    Adhearsion.config.virginia.host = host
    Adhearsion.config.virginia.port = port
    Adhearsion.config.virginia.handler = handler
  end

  it "should instantiate the handler" do
    handler.should_receive(:new).with(host, port)
    Virginia::Service.start
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virginia-0.2.1 spec/virginia/service_spec.rb
virginia-0.2.0 spec/virginia/service_spec.rb