spec/downloader_spec.rb in oddb2xml-2.4.2 vs spec/downloader_spec.rb in oddb2xml-2.4.3
- old
+ new
@@ -324,11 +324,11 @@
it 'should read csv as String' do
expect(csv).to be_a String
expect(csv.bytes).not_to be nil
end
it 'should clean up current directory' do
- File.exist?('epha_interactions.csv').should eq(false)
+ expect(File.exist?('epha_interactions.csv')).to eq(false)
end
it 'should save under download' do
expect(File.exist?(File.join(Oddb2xml::Downloads, 'epha_interactions.csv'))).to eq(true)
end
end
@@ -531,15 +531,13 @@
after(:each) do common_after end
it_behaves_like 'any downloader'
context 'download betrieb txt' do
let(:txt) { @downloader.download }
it 'should return valid String' do
- pending 'Should handle SSL issues'
expect(txt).to be_a String
expect(txt.bytes).not_to be nil
end
it 'should clean up current directory' do
- pending 'Should handle SSL issues'
expect { txt }.not_to raise_error
expect(File.exist?('oddb_company.xls')).to eq(false)
end
end
end