spec/lib/poms/views_spec.rb in poms-1.0.1 vs spec/lib/poms/views_spec.rb in poms-1.1.0

- old
+ new

@@ -3,11 +3,11 @@ describe Poms::Views do describe '#get' do let(:response) { File.read 'spec/fixtures/poms_broadcast.json' } it 'returns a metadata object' do - FakeWeb.register_uri(:get, 'http://docs.poms.omroep.nl/media/KRO_1614405', - body: response) + stub_request(:any, 'http://docs.poms.omroep.nl/media/KRO_1614405') + .to_return(body: response) expect(subject.get('KRO_1614405')).to eq(JSON.parse response) end end describe '#by_group' do