Sha256: cd98c3a194f859f8650878f1e4f7a18fc6d0661d54cdc3ec8f849161d665f93c
Contents?: true
Size: 574 Bytes
Versions: 5
Compression:
Stored size: 574 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 expect(@api.hostname).to 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) expect(api.hostname).to eq(options[:hostname]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems