Sha256: 5835a46aef3e57f47455d9de98f9a6b0a27855252990a861e7dfafd8e0769ef3
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
require 'spec_helper' describe OpenStudio::Analysis::ServerApi do context "create a new localhost instance" do before(:all) do @api = OpenStudio::Analysis::ServerApi.new end it "should set the default host to localhost" do @api.hostname.should eq("http://localhost:8080") end end context "test not localhost" do it "should have a not localhost URL" do options = {hostname: "http://abc.def.ghi"} api = OpenStudio::Analysis::ServerApi.new(options) api.hostname.should eq(options[:hostname]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems