Sha256: 42c1886dd33fa2e0bab3f247b090de02a0731d5c833ecf0197d5c1c17f71604a
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
require 'spec_helper' describe Graphlient::Client do let(:client) { Graphlient::Client.new('http://graph.biz/graphql') } describe '#schema' do before do stub_request(:post, 'http://graph.biz/graphql').to_return(status: 500) end it 'fails with an exception' do expect do client.schema end.to raise_error Graphlient::Errors::Server do |e| expect(e.to_s).to eq 'the server responded with status 500' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems