Sha256: a68329134271413a307fb36e3ce2026cb47f062b360a25f91a98494e62d6ba53
Contents?: true
Size: 446 Bytes
Versions: 9
Compression:
Stored size: 446 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{<h1><.*?> ([\w\.\-]+)<\/h1>}, 1].should == DCell.id end end
Version data entries
9 entries across 9 versions & 1 rubygems