spec/linodians_spec.rb in linodians-1.1.0 vs spec/linodians_spec.rb in linodians-1.1.1

- old
+ new

@@ -10,10 +10,12 @@ end end end describe '#load_data' do - let(:saved_data) { File.open('spec/examples/data') { |fh| JSON.load fh } } + let(:saved_data) do + File.open('spec/examples/data') { |fh| JSON.parse fh.read } + end let(:new_data) { VCR.use_cassette('new_data') { Linodians.load_data } } it 'downloads data from linode.com' do expect(new_data).to be_an_instance_of Array expect(new_data.first).to be_an_instance_of Linodians::Employee