Sha256: d5e78b6ea63706c1ff6f39012538085cec8e542b8dd2fee13b48813d0c124250
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' require 'dcell/explorer' describe DCell::Explorer do EXPLORER_HOST = 'localhost' EXPLORER_PORT = 7778 EXPLORER_BASE = "http://#{EXPLORER_HOST}:#{EXPLORER_PORT}" before do @explorer = DCell::Explorer.new(EXPLORER_HOST, EXPLORER_PORT) end it "reports the current node's status" do response = Net::HTTP.get URI(EXPLORER_BASE) response[%r{<a href="/nodes/(.*?)">}, 1].should == DCell.id end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dcell-0.16.1 | spec/dcell/explorer_spec.rb |
stn-dcell-0.16.0 | spec/dcell/explorer_spec.rb |