Sha256: 236b242211fe95dc77e802bc096faf130600d7174d693a4ac4ac2db307184b35

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true
RSpec.describe SoapyBing::Soap::Response::Base do
  before { stub_const('MyCustomResponse', Class.new(described_class) {}) }
  let(:response_body) { 'Some response body' }
  let(:my_custom_response) { MyCustomResponse.new(response_body) }

  describe '#body' do
    subject { my_custom_response.body }
    it 'keeps initialized value' do
      expect(subject).to eq response_body
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soapy_bing-0.1.0 spec/soapy_bing/soap/response/base_spec.rb
soapy_bing-0.0.5 spec/soapy_bing/soap/response/base_spec.rb