Sha256: 059c0a9bb425e765262450994de1465cca048a29c3e7f1768873c45a518c982a
Contents?: true
Size: 715 Bytes
Versions: 13
Compression:
Stored size: 715 Bytes
Contents
require 'spec_helper' module Vzaar describe Connection do let(:params) { { server: server } } subject { described_class.new params } describe "#server" do context "when server params includes http protocol" do let(:server) { "http://example.com" } specify { expect(subject.server).to eq("example.com") } end context "when server params includes https protocol" do let(:server) { "https://example.com" } specify { expect(subject.server).to eq("example.com") } end context "when server param is blank" do let(:server) { nil } specify { expect(subject.server).to eq(described_class::SERVER) } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems