Sha256: 9cf4e799d94e8f5e0662d8b6969e79006961ee1a4817b8506dde92dbaf7d813e
Contents?: true
Size: 566 Bytes
Versions: 5
Compression:
Stored size: 566 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
5 entries across 5 versions & 1 rubygems