Sha256: 26ea573c9ab35f0043a78aa62789fbe6c3dd20b874f678ffe234be9d50fb4681
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 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" } its(:server) { should eq "example.com" } end context "when server params includes https protocol" do let(:server) { "https://example.com" } its(:server) { should eq "example.com" } end context "when server param is blank" do let(:server) { nil } its(:server) { should eq described_class::SERVER } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vzaar-1.2.2 | spec/vzaar/connection_spec.rb |
vzaar-1.0.0 | spec/vzaar/connection_spec.rb |