Sha256: 365c894884cc70505d4f85dfd5f0ef815f0df63cb46372d9a28ee8ee11d50cf4
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
#connection_spec.rb require 'test_constants' describe Sword2Ruby::Connection do it "initialise without parameters" do connection = Sword2Ruby::Connection.new() connection.user.should == nil end it "initialise with invalid parameters" do expect{Sword2Ruby::Connection.new(12345)}.to raise_error(ArgumentError); end it "try to retrieve malformed URI" do expect{TEST_CONNECTION_VALID.get(TEST_SERVICE_DOCUMENT_URI_MALFORMED)}.to raise_error(URI::InvalidURIError); end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sword2ruby-1.0.1 | spec/connection_spec.rb |
sword2ruby-1.0.0 | spec/connection_spec.rb |