Sha256: ae09011b1eed1b9b93c67a5e8d7d6f23a1a152a5559e3a2c10c196dbda79018e
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 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) api.hostname.should eq(options[:hostname]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems