Sha256: f6f3d4df99390e65fe105d87bcbd82a588ff2aadd52ec95d83d790963491c708

Contents?: true

Size: 440 Bytes

Versions: 7

Compression:

Stored size: 440 Bytes

Contents

shared_examples 'a better HTTP response handling' do
  it 'raises an Pushbullet::Error with the message' do
    VCR.use_cassette('get_error', match_requests_on: [:host]) do
      expect { request }.to raise_error(Pushbullet::Error)
    end
  end

  it 'does not raise an Pushbullet::Error with the message' do
    VCR.use_cassette('contacts_all', match_requests_on: [:host]) do
      expect { request }.not_to raise_error
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/ruby-pushbullet-0.1.4/spec/shared/error_handling.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/ruby-pushbullet-0.1.4/spec/shared/error_handling.rb
tdiary-5.0.4 vendor/bundle/gems/ruby-pushbullet-0.1.4/spec/shared/error_handling.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/ruby-pushbullet-0.1.4/spec/shared/error_handling.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/ruby-pushbullet-0.1.4/spec/shared/error_handling.rb
ruby-pushbullet-0.1.4 spec/shared/error_handling.rb
ruby-pushbullet-0.1.3 spec/shared/error_handling.rb