Sha256: 644690a56fd291ef0274931ce4a0a8972ec8010981f9086c8b5904cdee948bcb

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'net/http'
require 'rufus-tokyo'

describe Spectate::Server do
  include Spectate::Spec::ServerHelpers
  before(:all) do
    start_server
  end
  it "responds to GET" do
    response = Net::HTTP.get_response('localhost','/',47502)
    response.code.to_i.should == 200
  end
  
  it "responds to a GET with its name and version number" do
    response = Net::HTTP.get_response('localhost','/',47502)
    response.body.should =~ /Spectate v#{Spectate::VERSION}/
  end
   after(:all) do
    stop_server
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spectate-0.0.0 spec/server_spec.rb