Sha256: 20e5f848817603e396070d5b1869b565f637860c224ddf3399675b638d9ac36f
Contents?: true
Size: 723 Bytes
Versions: 18
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Frodo::Middleware::InstanceURL do describe '.call' do subject { lambda { middleware.call(nil) } } let(:connection) { double("connection") } context 'when the instance url is not set' do before do allow(client).to receive_message_chain :connection, url_prefix: URI.parse('http:/') end it { should raise_error Frodo::UnauthorizedError } end context 'when the instance url is set' do before do allow(client).to receive_message_chain :connection, url_prefix: URI.parse('http://foobar.com/') expect(app).to receive(:call).once end it { should_not raise_error } end end end
Version data entries
18 entries across 18 versions & 1 rubygems